From 4745e8fb46f57ca296b8b8cd21ff75024c15803f Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Mon, 19 Oct 2015 17:09:43 -0700 Subject: [PATCH] Assemble effect strings at prototype time. --- src/lib/bind/accessors.html | 12 +++--------- src/lib/bind/effects.html | 6 +++--- src/lib/template/templatizer.html | 10 ++++++++-- src/micro/attributes.html | 11 +++++++---- src/standard/effectBuilder.html | 7 +++++-- 5 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/lib/bind/accessors.html b/src/lib/bind/accessors.html index 04de6c3a7e..265ca662ea 100644 --- a/src/lib/bind/accessors.html +++ b/src/lib/bind/accessors.html @@ -21,11 +21,8 @@ _modelApi: { - _notifyChange: function(property) { - var eventName = Polymer.CaseMap.camelToDashCase(property) + '-changed'; - Polymer.Base.fire(eventName, { - value: this[property] - }, {bubbles: false, node: this}); + _notifyChange: function(event, value) { + Polymer.Base.fire(event, {value: value}, {bubbles: false, node: this}); }, // TODO(sjmiles): removing _notifyListener from here breaks accessors.html @@ -80,10 +77,7 @@ _effectEffects: function(property, value, effects, old, fromAbove) { for (var i=0, l=effects.length, fx; (i