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

Commit c57f0e0

Browse files
committed
notify this.propertyChanged_ if present
1 parent 2e3aaec commit c57f0e0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/observe.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,15 @@
10831083
};
10841084

10851085
function notify(object, name, value, oldValue) {
1086-
if (!hasObserve || areSameValue(value, oldValue))
1086+
if (areSameValue(value, oldValue))
1087+
return;
1088+
1089+
// TODO(rafaelw): Hack hack hack. This entire code really needs to move
1090+
// out of observe-js into polymer.
1091+
if (typeof object.propertyChanged_ == 'function')
1092+
object.propertyChanged_(name, value, oldValue);
1093+
1094+
if (!hasObserve)
10871095
return;
10881096

10891097
var notifier = object.notifier_;

0 commit comments

Comments
 (0)