Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncRefresh error on page change #29

Open
riccardomarton opened this issue Jan 28, 2016 · 3 comments
Open

asyncRefresh error on page change #29

riccardomarton opened this issue Jan 28, 2016 · 3 comments

Comments

@riccardomarton
Copy link

Hi @mtr
I'm using ngAnimate to mange page transitions and I set angular-iscroll to automatically refresh all istances every 500ms (refreshInterval: 500).
Sometimes when i change page in my angular app, I get this error:

TypeError: Cannot read property 'length' of undefined
    at _indicatorsMap (iscroll.js:974)
    at Object.<anonymous> (iscroll.js:1007)
    at Object.IScroll._execEvent (iscroll.js:739)
    at Object.IScroll.refresh (iscroll.js:698)
    at _refreshAfterInitialRender (angular-iscroll.js:162)
    at angular.js:18132
    at completeOutstandingRequest (angular.js:5729)
    at angular.js:6006

I think it's because the module is trying to refresh a IScroll instance after the page is destroyed.

@tomchiverton
Copy link

Related to #13 ?

@riccardomarton
Copy link
Author

Looks like it is! Sorry for the duplicate. I'll try to fix it when I have time

@mtr
Copy link
Owner

mtr commented Feb 10, 2016

@riccardomarton and @tomchiverton: I am sorry, but I haven't been able to reproduce this nor the issue in #13. However, if any of you are able to both reproduce and fix the error situation, then I would be very happy if you would also submit a pull request for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants