@@ -91,26 +91,12 @@ function roleSetter(element, value) {
9191 }
9292}
9393
94- // special mapping for cases where attribute name doesn't match property name
95- var _lazyAttrToProp ;
96-
97- function attrToProp ( ) {
98- if ( ! isPresent ( _lazyAttrToProp ) ) {
99- _lazyAttrToProp = StringMapWrapper . merge ( {
100- "inner-html" : "innerHTML" ,
101- "readonly" : "readOnly" ,
102- "tabindex" : "tabIndex" ,
103- } , DOM . attrToPropMap ) ;
104- }
105- return _lazyAttrToProp ;
106- }
107-
10894// tells if an attribute is handled by the ElementBinderBuilder step
10995export function isSpecialProperty ( propName :string ) {
11096 return StringWrapper . startsWith ( propName , ARIA_PREFIX )
11197 || StringWrapper . startsWith ( propName , CLASS_PREFIX )
11298 || StringWrapper . startsWith ( propName , STYLE_PREFIX )
113- || StringMapWrapper . contains ( attrToProp ( ) , propName ) ;
99+ || StringMapWrapper . contains ( DOM . attrToPropMap , propName ) ;
114100}
115101
116102/**
@@ -257,7 +243,7 @@ export class ElementBinderBuilder extends CompileStep {
257243 }
258244
259245 _resolvePropertyName ( attrName :string ) {
260- var mappedPropName = StringMapWrapper . get ( attrToProp ( ) , attrName ) ;
246+ var mappedPropName = StringMapWrapper . get ( DOM . attrToPropMap , attrName ) ;
261247 return isPresent ( mappedPropName ) ? mappedPropName : attrName ;
262248 }
263249}
0 commit comments