backbone.js - unbind events when switching Backbone Views -
I have a list view and an extension view.
In the list view, I jquery Infinite-scroll plugin
When a user clicks on an item, I present the view in detail. The problem occurs when users touch the bottom of the page, an infinite scroll callback is removed.
I tried to call $ .infinitescroll ('pause'), but it will not be able to stop the fetch.
Should I completely delete the list view before viewing the details?
If so, how can I completely destroy it? (I tried but did not stop infinite scroll scrollback)
My code is in a bigger picture
Have you tried to do event.stopPropagation on scroll events within the extension view?
Comments
Post a Comment