diff --git a/public/javascripts/pages/comment-stream-index.js b/public/javascripts/pages/comment-stream-index.js deleted file mode 100644 index df368289b..000000000 --- a/public/javascripts/pages/comment-stream-index.js +++ /dev/null @@ -1,8 +0,0 @@ -Diaspora.Pages.CommentStreamIndex = function() { - var self = this; - - this.subscribe("page/ready", function(evt, document) { - self.aspectNavigation = self.instantiate("AspectNavigation", document.find("ul#aspect_nav")); - }); -}; - diff --git a/public/javascripts/pages/like-stream-index.js b/public/javascripts/pages/like-stream-index.js deleted file mode 100644 index 382f11000..000000000 --- a/public/javascripts/pages/like-stream-index.js +++ /dev/null @@ -1,7 +0,0 @@ -Diaspora.Pages.LikeStreamIndex = function() { - var self = this; - - this.subscribe("page/ready", function(evt, document) { - self.aspectNavigation = self.instantiate("AspectNavigation", document.find("ul#aspect_nav")); - }); -}; diff --git a/public/javascripts/pages/multis-index.js b/public/javascripts/pages/multis-index.js index 84ec296b0..5bbb25321 100644 --- a/public/javascripts/pages/multis-index.js +++ b/public/javascripts/pages/multis-index.js @@ -3,6 +3,5 @@ Diaspora.Pages.MultisIndex = function() { this.subscribe("page/ready", function(evt, document) { self.aspectNavigation = self.instantiate("AspectNavigation", document.find("ul#aspect_nav")); - self.stream = self.instantiate("Stream", document.find("#aspect_stream_container")); }); }; diff --git a/public/javascripts/pages/people-show.js b/public/javascripts/pages/people-show.js index 6607d89b2..0d9954629 100644 --- a/public/javascripts/pages/people-show.js +++ b/public/javascripts/pages/people-show.js @@ -1,3 +1,2 @@ Diaspora.Pages.PeopleShow = function() { - var self = this; }; diff --git a/public/javascripts/pages/posts-index.js b/public/javascripts/pages/posts-index.js index c6e1b3165..8266b92c9 100644 --- a/public/javascripts/pages/posts-index.js +++ b/public/javascripts/pages/posts-index.js @@ -1,7 +1,2 @@ Diaspora.Pages.PostsIndex = function() { - var self = this; - - this.subscribe("page/ready", function(evt, document) { - self.aspectNavigation = self.instantiate("AspectNavigation", document.find("ul#aspect_nav")); - }); }; diff --git a/public/javascripts/pages/posts-show.js b/public/javascripts/pages/posts-show.js index 7ec693718..a9cf6c51e 100644 --- a/public/javascripts/pages/posts-show.js +++ b/public/javascripts/pages/posts-show.js @@ -1,7 +1,2 @@ Diaspora.Pages.PostsShow = function() { - var self = this; - - this.subscribe("page/ready", function(evt, body) { - self.stream = self.instantiate("Stream", body.find("#main_stream")); - }); -}; \ No newline at end of file +}; diff --git a/public/javascripts/pages/tag-followings-index.js b/public/javascripts/pages/tag-followings-index.js index 3eaf10d27..71dc24aa8 100644 --- a/public/javascripts/pages/tag-followings-index.js +++ b/public/javascripts/pages/tag-followings-index.js @@ -3,7 +3,5 @@ Diaspora.Pages.TagFollowingsIndex = function() { this.subscribe("page/ready", function(evt, document) { self.aspectNavigation = self.instantiate("AspectNavigation", document.find("ul#aspect_nav")); - - self.stream = self.instantiate("Stream", document.find("#aspect_stream_container")); }); }; diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index f919c86b8..8283a6614 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -8,36 +8,6 @@ var Stream = { initialize: function() { Diaspora.page.directionDetector.updateBinds(); - Stream.setUpAudioLinks(); - }, - - initializeLives: function(){ - // reshare button action - $(".reshare_button", this.selector).live("click", function(evt) { - evt.preventDefault(); - var button = $(this), - box = button.siblings(".reshare_box"); - - if (box.length > 0) { - button.toggleClass("active"); - box.toggle(); - } - }); - }, - - setUpAudioLinks: function() { - $(".stream a[target='_blank']").each(function(r){ - var link = $(this); - if(this.href.match(/\.mp3$|\.ogg$/)) { - $("