From: Sarven Capadisli Date: Mon, 16 Nov 2009 22:16:08 +0000 (+0000) Subject: Unbinding the events from Notice reply and favor for possible memory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be73757131127c687090f925ff873ff385a88604;p=quix0rs-gnu-social.git Unbinding the events from Notice reply and favor for possible memory leaks --- 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(); }