Merge pull request #881 from braddunbar/ctor-args

Model.constructor only take attrs, not models.
This commit is contained in:
Jeremy Ashkenas
2012-01-20 12:57:34 -08:00

View File

@@ -364,7 +364,7 @@
// Create a new model with identical attributes to this one.
clone : function() {
return new this.constructor(this);
return new this.constructor(this.attributes);
},
// A model is new if it has never been saved to the server, and lacks an id.