Skip to content

Commit

Permalink
do not override user attributes with instance attributes (ref #190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Oct 3, 2013
1 parent e035cf0 commit 02ec2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/instance/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
copyInstanceAttributes: function () {
var a$ = this._instanceAttributes;
for (var k in a$) {
this.setAttribute(k, a$[k]);
if (!this.hasAttribute(k)) {
this.setAttribute(k, a$[k]);
}
}
},
// for each attribute on this, deserialize value to property as needed
Expand Down

0 comments on commit 02ec2fd

Please sign in to comment.