Issue #132 ... initial _changed after new with attributes.

This commit is contained in:
Jeremy Ashkenas
2010-12-10 11:58:41 -05:00
parent 81cd0cfd83
commit 53ae5b5cdf
2 changed files with 10 additions and 0 deletions

View File

@@ -121,6 +121,7 @@
this._escapedAttributes = {};
this.cid = _.uniqueId('c');
this.set(attributes, {silent : true});
this._changed = false;
this._previousAttributes = _.clone(this.attributes);
if (options && options.collection) this.collection = options.collection;
this.initialize(attributes, options);