Various useful primitives for composing and controlling Backbone collections
npm install backbone.collections
|9||downloads in the last week|
|18||downloads in the last month|
|Version||0.2.6 last updated 6 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.