Skip to content

Commit 02ec2fd

Browse files
author
Scott J. Miles
committed
do not override user attributes with instance attributes (ref #190)
1 parent e035cf0 commit 02ec2fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/instance/attributes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
copyInstanceAttributes: function () {
1212
var a$ = this._instanceAttributes;
1313
for (var k in a$) {
14-
this.setAttribute(k, a$[k]);
14+
if (!this.hasAttribute(k)) {
15+
this.setAttribute(k, a$[k]);
16+
}
1517
}
1618
},
1719
// for each attribute on this, deserialize value to property as needed

0 commit comments

Comments
 (0)