Simplest way:
var cloned = new Backbone.Collection(original.toJSON());
where original
is the collection to clone.
Could always then extend Backbone’s Collection
to add clone support w or w/o inheritance support.
Simplest way:
var cloned = new Backbone.Collection(original.toJSON());
where original
is the collection to clone.
Could always then extend Backbone’s Collection
to add clone support w or w/o inheritance support.