mixen-view-eventjanitor
v0.1.0
Published
Cleanup events in Backbone subviews
Downloads
3
Readme
Mixen View Event Janitor
A class which you can use with Mixen to cleanup events when you destroy Backbone subviews.
Usage
class MyView extends Mixen(EventJanitor, Backbone.View)
render: ->
subview = new OtherAwesomeView()
@rememberView subview
When undelegateEvents
gets called on the view, it will call stopListening
on all the
registered subviews.