mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
removing extra guard
This commit is contained in:
@@ -246,7 +246,7 @@
|
||||
this.cid = _.uniqueId('c');
|
||||
this.attributes = {};
|
||||
_.extend(this, _.pick(options, modelOptions));
|
||||
if (options && options.parse) attrs = this.parse(attrs, options) || {};
|
||||
if (options.parse) attrs = this.parse(attrs, options) || {};
|
||||
if (defaults = _.result(this, 'defaults')) {
|
||||
attrs = _.defaults({}, attrs, defaults);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user