mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
Attributes should remain a safe copy.
This commit is contained in:
@@ -101,9 +101,8 @@
|
||||
// If you do not specify the id, a negative id will be assigned for you.
|
||||
Backbone.Model = function(attributes) {
|
||||
this._attributes = {};
|
||||
attributes = attributes || {};
|
||||
this.set(attributes, {silent : true});
|
||||
this.cid = _.uniqueId('c');
|
||||
this.set(attributes || {}, {silent : true});
|
||||
this._formerAttributes = this.attributes();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user