backbone.sentinel

0.4.0 • Public • Published

Backbone.Sentinel

Top-level Backbone extension for managing collections of Backbone based view components.

Usage

var Component1 = Backbone.Sentinel.Component.extend({
  sentinelOptions: {
    renderOnRegister: false,
    renderOnRoute: true,
    removeOffRoute: true
  },

  initialize: function(){
    this.log('init');
  },

  render: function(){
    this.log('render');
    return this;
  }
});

var c1 = new Component1();

Backbone.Sentinel.register(c1);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    1
  • 0.1.1
    1

Package Sidebar

Install

npm i backbone.sentinel

Weekly Downloads

2

Version

0.4.0

License

MIT

Last publish

Collaborators

  • jimmynicol