Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

destroy() does not cancel resizeTimeout #924

Closed
unilynx opened this issue Jun 8, 2015 · 1 comment
Closed

destroy() does not cancel resizeTimeout #924

unilynx opened this issue Jun 8, 2015 · 1 comment

Comments

@unilynx
Copy link

unilynx commented Jun 8, 2015

I'm seeing javascript errors if I destroy an iscroll in my window onResize handler:

Uncaught TypeError: Cannot read property 'length' of undefined_indicatorsMap
@ iscroll.js?c=DToLACPt4QE:975(anonymous function)
@ iscroll.js?c=DToLACPt4QE:1008IScroll._execEvent
@ iscroll.js?c=DToLACPt4QE:739IScroll.refresh
@ iscroll.js?c=DToLACPt4QE:698(anonymous function)
@ iscroll.js?c=DToLACPt4QE:624

From what I can tell, one of the destroy handlers should have cleared resizeTimeout.

@sculove
Copy link
Collaborator

sculove commented Aug 5, 2015

I agree!
I fix it

Look at this PR
#950

@unilynx unilynx closed this as completed Sep 14, 2015
sculove added a commit that referenced this issue Mar 28, 2016
aisouard pushed a commit to Mappy/iscroll that referenced this issue Feb 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants