mixen-view-eventjanitor

Cleanup events in Backbone subviews

Showing:

Popularity

Downloads/wk

3

GitHub Stars

0

Maintenance

Last Commit

8yrs ago

Contributors

1

Package

Dependencies

2

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100