Skip to content

Commit

Permalink
Allow multiple paths to be linked using linkPath. Fixes #2048
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Sep 4, 2015
1 parent d3a7c93 commit b221dbe
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/standard/notify-path.html
Expand Up @@ -278,7 +278,7 @@
this._boundPaths[to] = from;
// this.set(to, this.get(from));
} else {
this.unbindPath(to);
this.unlinkPaths(to);
// this.set(to, from);
}
},
Expand All @@ -303,19 +303,10 @@
for (var a in this._boundPaths) {
var b = this._boundPaths[a];
if (path.indexOf(a + '.') == 0) {
from = a;
to = b;
break;
this.notifyPath(this._fixPath(b, a, path), value);
} else if (path.indexOf(b + '.') == 0) {
this.notifyPath(this._fixPath(a, b, path), value);
}
if (path.indexOf(b + '.') == 0) {
from = b;
to = a;
break;
}
}
if (from && to) {
var p = this._fixPath(to, from, path);
this.notifyPath(p, value);
}
},

Expand Down

0 comments on commit b221dbe

Please sign in to comment.