Various useful primitives for composing and controlling Backbone collections
Want to see pretty graphs? Log in now!
npm install backbone.collections
|10||downloads in the last week|
|38||downloads in the last month|
|Last Published By|
|Version||0.2.6 last updated 7 months ago|
|Keywords||backbone, collections, primitives, limit, join|
Collection of various tools I've created for working with Backbone Collections. Currently including:
Union: A collection that represents the union of an arbitrary number of connected collections. Adding and removing models in the connected collections will immediately reflect in the Union collection.
Faucet: Put a faucet on a collection: models aren't added until
drain()is called. A
pendingevent is triggered when new models are added to the parent collection.
limit: Automatically cap no. of models in a collection
See the tests for usage examples.