Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone.dirty-sync

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.dirty-sync

Overrides the Backbone.sync method with an abstraction, that only updates the dirty attributes in Models and Collections.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

backbone.dirty-sync

Creates an abstraction of the Backbone.sync Method - that figures out, which attributes of the Backbone Model or Collection has changed since the last sync.

Installation

The component can be used as a Common JS module, an AMD module, or a global.

Usage with Browserify

Install with npm, use with Browserify

> npm install backbone.dirty-sync

and in your code

var Backbone      = require('backbone');
var Backbone.sync = require('backbone.dirty-sync');

Usage as browser global

You can include backbone.dirty-sync.js directly in a script tag. Make sure that it is loaded after underscore and backbone. It overwrites the default Backbone.sync with the abstraction.

<script src="underscore.js"></script>
<script src="backbone.js"></script>
<script src="backbone.dirty-sync.js"></script>

License

MIT

Keywords

FAQs

Package last updated on 08 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc