From 7eb1a627f9119fbbaade8f316db591b9dd84c457 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Wed, 2 Aug 2017 14:07:15 -0700 Subject: [PATCH] Refactor to be functional and add more tests --- lib/mixins/property-effects.html | 2 +- lib/utils/binding-parser.html | 476 ++++++++++------------- test/unit/property-effects-elements.html | 10 + test/unit/property-effects.html | 30 +- 4 files changed, 240 insertions(+), 278 deletions(-) diff --git a/lib/mixins/property-effects.html b/lib/mixins/property-effects.html index 032bc7797a..15f9e5cdc7 100644 --- a/lib/mixins/property-effects.html +++ b/lib/mixins/property-effects.html @@ -2610,7 +2610,7 @@ * @protected */ static _parseBindings(text, templateInfo) { - const parserParts = new Polymer.BindingParser().parse(text, templateInfo); + const parserParts = Polymer.BindingParser.parse(text, templateInfo); if (parserParts.length) { return parserParts; } else { diff --git a/lib/utils/binding-parser.html b/lib/utils/binding-parser.html index 06ea6b86c3..fdb17fe98c 100644 --- a/lib/utils/binding-parser.html +++ b/lib/utils/binding-parser.html @@ -8,6 +8,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> +