You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.
The resize event handler is fired even after an iScroll instance is destroyed. This also results in the iScroll object never being garbage-collected.
example:
// first add console.log('resize'); to the _resize() method of iScroll at line 214
window.onload = function ()
{
var div = document.createElement('div');
div.id = 'myDiv';
var ul = document.createElement('ul');
div.appendChild(ul);
document.body.appendChild(div);
var scroll = new iScroll('myDiv');
scroll.destroy();
scroll = null;
}
Then check console to see that the _resize method is still being executed when the browser window is resized
The text was updated successfully, but these errors were encountered:
The resize event handler is fired even after an iScroll instance is destroyed. This also results in the iScroll object never being garbage-collected.
example:
Then check console to see that the _resize method is still being executed when the browser window is resized
The text was updated successfully, but these errors were encountered: