Nuclear Powered Mushroom

    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.

    Install

    npm i mixen-view-eventjanitor

    DownloadsWeekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

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