@@ -112,7 +112,7 @@ if (useNative) {
112112 throw new Error ( 'Options missing required prototype property' ) ;
113113 }
114114 // record name
115- definition . elementName = name . toLowerCase ( ) ;
115+ definition . __name = name . toLowerCase ( ) ;
116116 // ensure a lifecycle object so we don't have to null test it
117117 definition . lifecycle = definition . lifecycle || { } ;
118118 // build a list of ancestral custom elements (for native base detection)
@@ -128,7 +128,7 @@ if (useNative) {
128128 // overrides to implement attributeChanged callback
129129 overrideAttributeApi ( definition . prototype ) ;
130130 // 7.1.5: Register the DEFINITION with DOCUMENT
131- registerDefinition ( definition . elementName , definition ) ;
131+ registerDefinition ( definition . __name , definition ) ;
132132 // 7.1.7. Run custom element constructor generation algorithm with PROTOTYPE
133133 // 7.1.8. Return the output of the previous step.
134134 definition . ctor = generateConstructor ( definition ) ;
@@ -161,10 +161,10 @@ if (useNative) {
161161 baseTag = a . is && a . tag ;
162162 }
163163 // our tag is our baseTag, if it exists, and otherwise just our name
164- definition . tag = baseTag || definition . elementName ;
164+ definition . tag = baseTag || definition . __name ;
165165 if ( baseTag ) {
166166 // if there is a base tag, use secondary 'is' specifier
167- definition . is = definition . elementName ;
167+ definition . is = definition . __name ;
168168 }
169169 }
170170
0 commit comments