Closed johtso closed 11 years ago
@johtso I am having a hard time understanding your problem. Could you give a specific example of your module/collection structure?
Here's a simple contrived example: http://jsbin.com/UyAyEGU/1/edit?js,console
I would expect to see a reset
event triggered on Things
collections.
Just been having a bit of a read through what happens when a collection is reset, and it seems that the individual models are silently added to the collection. Backbone nested then honours those options, and silently populates any subcollections. This then makes it impossible to listen for initial population of a subcollection. Does this sound right?
Reset events now propagate to sub collections in v0.5.0
I'm struggling to get my head around how backbone-nested is dealing with firing events on nested Backbone structures.
As far as I can tell, no
reset
events are fired for nested collections, when the parent collection is reset.Am I right in thinking that this is currently a shortcoming in the library? Would be great to have this functionality, currently I'm having to do strange things like listening to events on the top level collection, and I don't think I'm going to be able to get much further with that.