CyberAP
Well-known member
Here is some code from xenforo.js:
Anonymous function was bind to 'resize' event in window. There is no way to unbind this function and save all other functions that were bind to 'resize' event. Here is an easy way to solve this and make developers happy:
Now we can unbind this event with a simple call:
Code:
$(window).on('resize', function() {
XenForo.checkQuoteSizing($(document));
});
Anonymous function was bind to 'resize' event in window. There is no way to unbind this function and save all other functions that were bind to 'resize' event. Here is an easy way to solve this and make developers happy:
Code:
$(window).on('resize.checkQuoteSizing', function() {
XenForo.checkQuoteSizing($(document));
});
Now we can unbind this event with a simple call:
Code:
$(window).off('resize.checkQuoteSizing');
Upvote
0