From 02ec2fd58f16efdf8dfb9f1a37cd70bb22c850c4 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Wed, 2 Oct 2013 18:39:28 -0700 Subject: [PATCH] do not override user attributes with instance attributes (ref #190) --- src/instance/attributes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/instance/attributes.js b/src/instance/attributes.js index ee6811a220..a5d6ad497c 100644 --- a/src/instance/attributes.js +++ b/src/instance/attributes.js @@ -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