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
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:
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;
The text was updated successfully, but these errors were encountered: