Prevent Backbone models from saving too frequently
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
.gitignore
.hsdoc
Gruntfile.coffee
LICENSE
README.md
package.json
throttle.coffee
throttle.js
throttle.min.js

README.md

Mixen Model Throttle

A class which you can use with Mixen to prevent your Backbone models from saving too frequently.

Usage

class MyModel extends Mixen(Mixen.Model.Throttle, Backbone.Model)
  minSaveInterval: 500
  # Treat it like a normal model
  # It won't save more than every 500ms