Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (27 sloc) 1.35 KB

Backbone-delta Build Status

This project is unmaintained.

A couple of extra methods for Backbone.js, related to changing models and collections.

  • Backbone.Model#reset resets attributes of the model, also unsetting attributes that no longer exist, and triggers a single set event.

  • Backbone.Collection#delta resets a collection, and triggers several add, remove, and change events, but falls back to a normal reset when the contents has changed completely.

MIT licensed.

From the browser

Include backbone-delta.js or the minified version backbone-delta.min.js in your page. If Backbone.js is loaded, it will automatically be extended.

From Node.js

Install using NPM:

npm install backbone-delta

In your code:

var Backbone = require('backbone');

Hacking the code

git clone
cd backbone-delta
npm install
npm test