From 852aba014c89e486fd62d8193a23cba54224b653 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Tue, 3 May 2016 12:15:05 +0200 Subject: [PATCH] Modify _annotationPathEffect --- src/standard/notify-path.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/standard/notify-path.html b/src/standard/notify-path.html index 3b9ac87e71..7c760edd51 100644 --- a/src/standard/notify-path.html +++ b/src/standard/notify-path.html @@ -291,11 +291,11 @@ }, _annotationPathEffect: function(path, value, effect) { - if (effect.value === path || effect.value.indexOf(path + '.') === 0) { + if (Path.matches(effect.value, false, path)) { // TODO(sorvell): ideally the effect function is on this prototype // so we don't have to call it like this. Polymer.Bind._annotationEffect.call(this, path, value, effect); - } else if ((path.indexOf(effect.value + '.') === 0) && !effect.negate) { + } else if (!effect.negate && Path.isDescendant(effect.value, path)) { // locate the bound node var node = this._nodes[effect.index]; if (node && node._notifyPath) {