Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
notify this.propertyChanged_ if present
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Apr 17, 2014
1 parent 2e3aaec commit c57f0e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,15 @@
};

function notify(object, name, value, oldValue) {
if (!hasObserve || areSameValue(value, oldValue))
if (areSameValue(value, oldValue))
return;

// TODO(rafaelw): Hack hack hack. This entire code really needs to move
// out of observe-js into polymer.
if (typeof object.propertyChanged_ == 'function')
object.propertyChanged_(name, value, oldValue);

if (!hasObserve)
return;

var notifier = object.notifier_;
Expand Down

0 comments on commit c57f0e0

Please sign in to comment.