File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -456,9 +456,9 @@ export abstract class UpdatingElement extends HTMLElement {
456456 private static _propertyValueFromAttribute (
457457 value : string | null , options : PropertyDeclaration ) {
458458 const type = options . type ;
459- const converter = options . converter || defaultConverter ;
459+ const converter = options . converter || defaultConverter ;
460460 const fromAttribute =
461- ( typeof converter === 'function' ? converter : converter . fromAttribute ) ;
461+ ( typeof converter === 'function' ? converter : converter . fromAttribute ) ;
462462 return fromAttribute ? fromAttribute ( value , type ) : value ;
463463 }
464464
@@ -476,11 +476,11 @@ export abstract class UpdatingElement extends HTMLElement {
476476 return ;
477477 }
478478 const type = options . type ;
479- const converter = options . converter ;
480- const toAttribute =
481- converter && ( converter as ComplexAttributeConverter ) . toAttribute ||
482- defaultConverter . toAttribute ;
483- return toAttribute ! ( value , type ) ;
479+ const converter = options . converter ;
480+ const toAttribute =
481+ converter && ( converter as ComplexAttributeConverter ) . toAttribute ||
482+ defaultConverter . toAttribute ;
483+ return toAttribute ! ( value , type ) ;
484484 }
485485
486486 private _updateState : UpdateState = 0 ;
You can’t perform that action at this time.
0 commit comments