Skip to content

Commit

Permalink
Apply to _marshalArgs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Jul 23, 2016
1 parent 77808d9 commit b2cd932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/bind/effects.html
Expand Up @@ -8,6 +8,8 @@
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="../case-map.html">
<link rel="import" href="../path.html">

<script>

Polymer.Base.extend(Polymer.Bind, {
Expand Down Expand Up @@ -144,8 +146,7 @@
// caused the observer to run matches this arg. Note that this holds
// also true when `path === name`. We can skip this check b/c then
// `name` and `v` already have the values we want.
// Read the following as: `head(path) === name`.
var matches = path.indexOf(name + '.') === 0;
var matches = Polymer.Path.isAncestor(path, name);
values[i] = {
path: matches ? path : name,
value: matches ? value : v,
Expand Down

0 comments on commit b2cd932

Please sign in to comment.