Skip to content

Commit 23ba7de

Browse files
committed
Update types
1 parent 89ab738 commit 23ba7de

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

types/lib/mixins/property-effects.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,17 @@ declare namespace Polymer {
257257
* - Inline computed method (supports negation):
258258
* `[[compute(a, 'literal', b)]]`, `[[!compute(a, 'literal', b)]]`
259259
*
260+
* The default implementation uses a regular expression for best
261+
* performance. However, the regular expression uses a white-list of
262+
* allowed characters in a data-binding, which causes problems for
263+
* data-bindings that do use characters not in this white-list.
264+
*
265+
* Instead of updating the white-list with all allowed characters,
266+
* there is a StrictBindingParser (see lib/mixins/strict-binding-parser)
267+
* that uses a state machine instead. This state machine is able to handle
268+
* all characters. However, it is slightly less performant, therefore we
269+
* extracted it into a separate optional mixin.
270+
*
260271
* @param text Text to parse from attribute or textContent
261272
* @param templateInfo Current template metadata
262273
* @returns Array of binding part metadata

0 commit comments

Comments
 (0)