From 66161b06fd3e52e07c65a9f24b6ac31da8c6adcf Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Wed, 18 Jan 2012 23:06:12 -0500 Subject: [PATCH] Model.constructor only take attrs, not models. As per discussion in #873. --- backbone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index 581078337..d1ef1fdbe 100644 --- a/backbone.js +++ b/backbone.js @@ -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.