Skip to content

Commit

Permalink
Modify _annotationPathEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jul 23, 2016
1 parent b9944fe commit 852aba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/standard/notify-path.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 852aba0

Please sign in to comment.