mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Allow multiple paths to be linked using linkPath. Fixes #2048
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user