From c57f0e04f857fee6889468d959ab8233df1d5b31 Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Thu, 17 Apr 2014 16:13:48 -0700 Subject: [PATCH] notify this.propertyChanged_ if present --- src/observe.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/observe.js b/src/observe.js index 5e41206..9860205 100644 --- a/src/observe.js +++ b/src/observe.js @@ -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_;