Skip to content

Commit f5aec30

Browse files
author
Steven Orvell
committed
maintain compatibility with older _notifyChange arguments.
1 parent f2d5f44 commit f5aec30

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib/bind/accessors.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020

2121
_modelApi: {
2222

23-
_notifyChange: function(event, value) {
24-
// use a cached event here (_useCache: true) for efficiency
23+
_notifyChange: function(source, event, value) {
24+
value = value === undefined ? this[source] : value;
25+
event = event || Polymer.CaseMap.camelToDashCase(source) + '-changed';
2526
this.fire(event, {value: value},
2627
{bubbles: false, cancelable: false, _useCache: true});
2728
},

src/lib/bind/effects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
_notifyEffect: function(source, value, effect, old, fromAbove) {
4343
if (!fromAbove) {
44-
this._notifyChange(effect.event, value);
44+
this._notifyChange(source, effect.event, value);
4545
}
4646
},
4747

0 commit comments

Comments
 (0)