forked from GNUsocial/gnu-social
Unbinding the events from Notice reply and favor for possible memory
leaks
This commit is contained in:
parent
629532e2da
commit
be73757131
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user