Backbone Events: Adding Views to the DOM
Read OriginalThis technical article discusses the challenge of detecting when a Backbone.js view is added to or removed from the DOM. It examines potential solutions, including using the livequery jQuery plugin (and its AMD integration) and firing custom events from the view's render method. The author proposes creating a base View class that dispatches custom 'addedToDOM' and 'removedFromDOM' events.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser