backbone-normalize-hash

1.0.0 • Public • Published

Backbone Normalize Hash

var Backbone = require('backbone');
var normalizeHash = require('backbone-normalize-hash');

Backbone.View.extend({
  initialize() {
    this.listenTo(this.model, normalizeHash(this, 'modelEvents'))
  },

  modelEvents: {
    change: 'render'
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i backbone-normalize-hash

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • thejameskyle