mixen-view-eventjanitor

0.1.0 • Public • Published

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(EventJanitorBackbone.View)
  render: ->
    subview = new OtherAwesomeView()
 
    @rememberView subview

When undelegateEvents gets called on the view, it will call stopListening on all the registered subviews.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.02latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.02

Package Sidebar

Install

npm i mixen-view-eventjanitor

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • henryqdineen
  • maxwellskala
  • arota-hubspot
  • service-ccs
  • rberdeen-hubspot
  • also
  • kj800x
  • friss
  • jhilker