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

eventData undefined after animate #12

Open
Bertilope opened this issue Jan 31, 2013 · 0 comments
Open

eventData undefined after animate #12

Bertilope opened this issue Jan 31, 2013 · 0 comments

Comments

@Bertilope
Copy link

I'm building a page with a list of posts for which i use flickable for infinite scroll. When a post is clicked i move the flickable down and load the single post through ajax. when i go back to the posts page i get an error in scrollSegment. For some strange reason eventData is undefined (error: can not read property end of undefined (methods.scrollToSegment)). I unbind, nullify the flickable, remove data attributes and then reinitialize flickable. To prevent the code from breaking i added this line of code:

eventData = eventData ? eventData : eventDataObject;

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

No branches or pull requests

1 participant