Socket
Socket
Sign inDemoInstall

backbone.dirty-sync

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Install size
4.42 kB
Created
Weekly downloads
 

Readme

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

Last updated on 08 Sep 2015

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