Socket
Socket
Sign inDemoInstall

backbone-delta

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    backbone-delta

Detect and apply changes on Backbone.js models


Version published
Weekly downloads
10
increased by25%
Maintainers
1
Install size
972 kB
Created
Weekly downloads
 

Readme

Source

Backbone-delta Build Status

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');
require('backbone-delta').extend(Backbone);

Hacking the code

git clone https://github.com/Two-Screen/backbone-delta.git
cd backbone-delta
npm install
npm test

FAQs

Last updated on 13 Feb 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc