Skip to content

Commit

Permalink
maintain compatibility with older _notifyChange arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Nov 6, 2015
1 parent f2d5f44 commit f5aec30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/lib/bind/accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

_modelApi: {

_notifyChange: function(event, value) {
// use a cached event here (_useCache: true) for efficiency
_notifyChange: function(source, event, value) {
value = value === undefined ? this[source] : value;
event = event || Polymer.CaseMap.camelToDashCase(source) + '-changed';
this.fire(event, {value: value},
{bubbles: false, cancelable: false, _useCache: true});
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bind/effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

_notifyEffect: function(source, value, effect, old, fromAbove) {
if (!fromAbove) {
this._notifyChange(effect.event, value);
this._notifyChange(source, effect.event, value);
}
},

Expand Down

0 comments on commit f5aec30

Please sign in to comment.