Skip to content

Commit 7a51a10

Browse files
committed
Rename to StrictBindingParser
1 parent dedb064 commit 7a51a10

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

lib/utils/binding-parser.html renamed to lib/utils/strict-binding-parser.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,14 @@
110110
/**
111111
* Mixin that parses binding expressions and generates corresponding metadata.
112112
* The implementation is different than in `property-effects`, as it uses a
113-
* state machine instead of a regex.
113+
* state machine instead of a regex. As such, this implementation is able to
114+
* handle more cases, with the potential performance hit.
114115
*
115116
* @namespace
116117
* @memberof Polymer
117118
* @summary Mixin that parses binding expressions and generates corresponding metadata.
118119
*/
119-
const BindingParser = Polymer.dedupingMixin((base) => {
120+
const StrictBindingParser = Polymer.dedupingMixin((base) => {
120121

121122
return class extends base {
122123

@@ -399,6 +400,6 @@
399400
};
400401
});
401402

402-
Polymer.BindingParser = BindingParser;
403+
Polymer.StrictBindingParser = StrictBindingParser;
403404
})();
404405
</script>

test/unit/property-effects-elements.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Code distributed by Google as part of the polymer project is also
88
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
99
-->
10-
<link rel="import" href="../../lib/utils/binding-parser.html">
10+
<link rel="import" href="../../lib/utils/strict-binding-parser.html">
1111
<dom-module id="x-basic">
1212
<template>
1313
<div id="boundChild"
@@ -332,10 +332,10 @@
332332
});
333333

334334
HTMLImports.whenReady(() => {
335-
class XBasicWithBindingParser extends Polymer.BindingParser(customElements.get('x-basic')) {
336-
static get is() { return 'x-basic-binding-parser'; }
335+
class XBasicWithStrictBindingParser extends Polymer.StrictBindingParser(customElements.get('x-basic')) {
336+
static get is() { return 'x-basic-strict-binding-parser'; }
337337
}
338-
customElements.define(XBasicWithBindingParser.is, XBasicWithBindingParser);
338+
customElements.define(XBasicWithStrictBindingParser.is, XBasicWithStrictBindingParser);
339339
});
340340
</script>
341341
</dom-module>

test/unit/property-effects.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,10 @@
409409
}
410410
});
411411

412-
suite('can work with binding parser', function() {
412+
suite('can work with strict binding parser', function() {
413413
setup(function() {
414414
document.body.removeChild(el);
415-
el = document.createElement('x-basic-binding-parser');
415+
el = document.createElement('x-basic-strict-binding-parser');
416416
document.body.appendChild(el);
417417
});
418418

0 commit comments

Comments
 (0)