From be73757131127c687090f925ff873ff385a88604 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Mon, 16 Nov 2009 22:16:08 +0000 Subject: [PATCH] Unbinding the events from Notice reply and favor for possible memory leaks --- plugins/Realtime/realtimeupdate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 59045c094e..16c96615ef 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(); } -- 2.39.5