If you need to nestle Backbone models in each other and keep instance references and event bindings after .save(), then this is the ticket.
$ npm install backbone backbone-recursive-model
Backbone is not set as a dependency in the package.json but is required to be installed to use the RecursiveModel class. The reason for this is because you need to share the same instance of Backbone.
;var Backbone = ;var MyModel = BackboneRecursiveModel;
var RecursiveModel = ;var MyModel = RecursiveModel;
Just include the
index.js file in a script tag together with Backbone and
your ready to go.