Nanometer Process Machine
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    backbone.vieweventspublic

    Backbone.ViewEvents — an alternative Events implementation for the Backbone.View which provides events which bubble up through a view hierarchy while the latter is inferred from DOM and the views' position in it.

    Example:

    {View} = require 'backbone.viewevents'

    parent = new View().render() child = new View().render()

    parent.$el.append(child.$el)

    # register listener on parent parent.on 'someevent', (msg) -> console.log('caught!', msg)

    # trigger event on child child.trigger('someevent', 'hello')

    Keywords

    none

    install

    npm i backbone.viewevents

    Downloadsweekly downloads

    15

    version

    0.3.4

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar