File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 110
110
/**
111
111
* Mixin that parses binding expressions and generates corresponding metadata.
112
112
* 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.
114
115
*
115
116
* @namespace
116
117
* @memberof Polymer
117
118
* @summary Mixin that parses binding expressions and generates corresponding metadata.
118
119
*/
119
- const BindingParser = Polymer . dedupingMixin ( ( base ) => {
120
+ const StrictBindingParser = Polymer . dedupingMixin ( ( base ) => {
120
121
121
122
return class extends base {
122
123
399
400
} ;
400
401
} ) ;
401
402
402
- Polymer . BindingParser = BindingParser ;
403
+ Polymer . StrictBindingParser = StrictBindingParser ;
403
404
} ) ( ) ;
404
405
</ script >
Original file line number Diff line number Diff line change 7
7
Code distributed by Google as part of the polymer project is also
8
8
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
9
-->
10
- < link rel ="import " href ="../../lib/utils/binding-parser.html ">
10
+ < link rel ="import " href ="../../lib/utils/strict- binding-parser.html ">
11
11
< dom-module id ="x-basic ">
12
12
< template >
13
13
< div id ="boundChild "
332
332
} ) ;
333
333
334
334
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' ; }
337
337
}
338
- customElements . define ( XBasicWithBindingParser . is , XBasicWithBindingParser ) ;
338
+ customElements . define ( XBasicWithStrictBindingParser . is , XBasicWithStrictBindingParser ) ;
339
339
} ) ;
340
340
</ script >
341
341
</ dom-module >
Original file line number Diff line number Diff line change 409
409
}
410
410
} ) ;
411
411
412
- suite ( 'can work with binding parser' , function ( ) {
412
+ suite ( 'can work with strict binding parser' , function ( ) {
413
413
setup ( function ( ) {
414
414
document . body . removeChild ( el ) ;
415
- el = document . createElement ( 'x-basic-binding-parser' ) ;
415
+ el = document . createElement ( 'x-basic-strict- binding-parser' ) ;
416
416
document . body . appendChild ( el ) ;
417
417
} ) ;
418
418
You can’t perform that action at this time.
0 commit comments