backbone-nested
backbone-nested copied to clipboard
A plugin to make Backbone.js keep track of nested attributes - looking for maintainers! https://github.com/afeld/backbone-nested/issues/157
I wanted to use https://github.com/asciidisco/Backbone.Mutators with my models. The issue is backbone -nested does not use the Backbone.Model get/set methods so backbone mutators cannot hook in. Anyway to get this...
This is going to simplify a lot of the code, since the Backbone.Model code will work for simple attributes at each level.
See commit bbff1efa for failing test. I imagine the event firing code within `clear()` from #54 can be reused for this.
It would be nice to have the possibility to allow default: {} to contain functions (also in nested properties). For example: ``` var myModel = Backbone.NestedModel.extended({ id: '', properties: {...