summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-16 22:16:08 +0000
committerSarven Capadisli <csarven@status.net>2009-11-16 22:16:08 +0000
commitbe73757131127c687090f925ff873ff385a88604 (patch)
tree53e6fd546e3cddd93ad0237317c4bd02813e16fd
parent629532e2da239b791b245ce702170d0b8de9c0ef (diff)
Unbinding the events from Notice reply and favor for possible memory
leaks
-rw-r--r--plugins/Realtime/realtimeupdate.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js
index 59045c094..16c96615e 100644
--- a/plugins/Realtime/realtimeupdate.js
+++ b/plugins/Realtime/realtimeupdate.js
@@ -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();
}