]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Unbinding the events from Notice reply and favor for possible memory
authorSarven Capadisli <csarven@status.net>
Mon, 16 Nov 2009 22:16:08 +0000 (22:16 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 16 Nov 2009 22:16:08 +0000 (22:16 +0000)
leaks

plugins/Realtime/realtimeupdate.js

index 59045c094e383e288da06ca7f06ac6fa07e61af1..16c96615effab6a54f0d7cd5f3403d2bdf1d1cc3 100644 (file)
@@ -80,6 +80,9 @@ RealtimeUpdate = {
               $("#notices_primary .notice:first").fadeIn(1000);
 
               if ($('#notices_primary .notice').length > RealtimeUpdate._maxnotices) {
+                   $("#notices_primary .notice:last .form_disfavor").unbind('submit');
+                   $("#notices_primary .notice:last .form_favor").unbind('submit');
+                   $("#notices_primary .notice:last #notice_in-reply-to").unbind('click');
                    $("#notices_primary .notice:last").remove();
               }