mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
For correctness, bind listeners must use a property's current value rather than its passed value.
This commit is contained in:
parent
b905a37654
commit
aca404f7e8
@ -219,7 +219,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
if (targetPath) {
|
||||
this._notifyPath(this._fixPath(path, property, targetPath), value);
|
||||
} else {
|
||||
value = value !== undefined ? value : target[property];
|
||||
// TODO(sorvell): even though we have a `value` argument, we *must*
|
||||
// lookup the current value of the property. Multiple listeners and
|
||||
// queued events during configuration can theoretically lead to
|
||||
// divergence of the passed value from the current value, but we
|
||||
// really need to track down a specific case where this happens.
|
||||
value = target[property];
|
||||
if (!isStructured) {
|
||||
this[path] = value;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user