Allow multiple paths to be linked using linkPath. Fixes #2048

This commit is contained in:
Kevin Schaaf
2015-09-03 20:18:54 -07:00
parent d3a7c93a46
commit b221dbe63d

View File

@@ -278,7 +278,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
this._boundPaths[to] = from;
// this.set(to, this.get(from));
} else {
this.unbindPath(to);
this.unlinkPaths(to);
// this.set(to, from);
}
},
@@ -303,19 +303,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
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);
}
},