From 072dcff0b7185dcd93f1339d1f3678a530ec82a0 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Sat, 16 Apr 2016 12:39:31 +0200 Subject: [PATCH] Ensure fromAbove in _forwardParentProp. The general rule here is: `_forwardParentProp/Path` must assume fromAbove is true; for `_forwardInstanceProp/Path` assume fromAbove is false. --- src/lib/template/dom-if.html | 2 +- test/unit/templatizer-elements.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/template/dom-if.html b/src/lib/template/dom-if.html index 500f56f372..baa6c194c9 100644 --- a/src/lib/template/dom-if.html +++ b/src/lib/template/dom-if.html @@ -169,7 +169,7 @@ // notifying parent. path change on instance _forwardParentProp: function(prop, value) { if (this._instance) { - this._instance[prop] = value; + this._instance.__setProperty(prop, value, true); } }, diff --git a/test/unit/templatizer-elements.html b/test/unit/templatizer-elements.html index e56e46687a..da4fce0d61 100644 --- a/test/unit/templatizer-elements.html +++ b/test/unit/templatizer-elements.html @@ -97,7 +97,7 @@ }, _forwardParentProp: function(prop, value) { if (this.instance) { - this.instance[prop] = value; + this.instance.__setProperty(prop, value, true); } }, _forwardParentPath: function(path, value) { @@ -165,7 +165,7 @@ }, _forwardParentProp: function(prop, value) { if (this.instance) { - this.instance[prop] = value; + this.instance.__setProperty(prop, value, true); } }, _forwardParentPath: function(path, value) {