fix for #1735 - consistently use attrs in Model constructor

This commit is contained in:
Sam Breed
2012-10-14 11:51:30 -06:00
parent 5e103f7aaa
commit b41d5628c7

View File

@@ -185,7 +185,7 @@
var defaults;
var attrs = attributes || {};
if (options && options.collection) this.collection = options.collection;
if (options && options.parse) attributes = this.parse(attributes);
if (options && options.parse) attrs = this.parse(attrs);
if (defaults = _.result(this, 'defaults')) {
attrs = _.extend({}, defaults, attrs);
}