Explictly unbinding is unnecessary as jQuery's remove() takes care of it
This commit is contained in:
parent
bbeea08127
commit
c413a4d80b
|
@ -99,9 +99,6 @@ RealtimeUpdate = {
|
||||||
|
|
||||||
purgeLastNoticeItem: function() {
|
purgeLastNoticeItem: function() {
|
||||||
if ($('#notices_primary .notice').length > RealtimeUpdate._maxnotices) {
|
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_reply").unbind('click');
|
|
||||||
$("#notices_primary .notice:last").remove();
|
$("#notices_primary .notice:last").remove();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user