bengourley / chale

A collection of data models
0 stars 0 forks source link

Need a way to listen to events from models currently in the collection #1

Closed bengourley closed 9 years ago

bengourley commented 9 years ago
// create a new collection
var c = new Collection(serviceLocator)

// propagate the 'change' and 'reset' events from the model
c.propagateEvents([ 'change', 'reset' ])

// can now listen to propagated events prefixed with `model:`
c.on('model:change', function (model, args) {
})
bengourley commented 9 years ago

should any of these be on by default?