@@ -15,11 +15,11 @@ class AuthorOptionsElement extends HTMLElement {
1515 displayOptions : {
1616 readonly : true ,
1717 get : ( ) => {
18- let ChassisHTMLOptionsCollection = this . PRIVATE . generateChassisHTMLOptionsCollectionConstructor ( )
18+ let AuthorHTMLOptionsCollection = this . PRIVATE . generateAuthorHTMLOptionsCollectionConstructor ( )
1919 let array = this . options . map ( option => option . displayElement )
2020 let addFunction = ( element , before ) => this . addOption ( this . PRIVATE . generateOptionObject ( element ) , before )
2121 let removeFunction = index => this . removeOptionByIndex ( index )
22- return new ChassisHTMLOptionsCollection ( array , this . selectedIndex , addFunction , removeFunction )
22+ return new AuthorHTMLOptionsCollection ( array , this . selectedIndex , addFunction , removeFunction )
2323 }
2424 } ,
2525
@@ -59,8 +59,8 @@ class AuthorOptionsElement extends HTMLElement {
5959 readonly : true ,
6060 get : ( ) => {
6161 let nodes = this . querySelectorAll ( '[selected]' )
62- let ChassisHTMLCollection = this . PRIVATE . generateChassisHTMLCollectionConstructor ( )
63- return new ChassisHTMLCollection ( nodes )
62+ let AuthorHTMLCollection = this . PRIVATE . generateAuthorHTMLCollectionConstructor ( )
63+ return new AuthorHTMLCollection ( nodes )
6464 }
6565 } ,
6666
@@ -181,10 +181,10 @@ class AuthorOptionsElement extends HTMLElement {
181181 return comparator . filter ( option => ! comparable . includes ( option ) )
182182 } ,
183183
184- generateChassisHTMLCollectionConstructor ( ) {
184+ generateAuthorHTMLCollectionConstructor ( ) {
185185 let _p = new WeakMap ( )
186186
187- return class ChassisHTMLCollection {
187+ return class AuthorHTMLCollection {
188188 constructor ( arr ) {
189189 _p . set ( this , { arr} )
190190 arr . forEach ( ( node , index ) => {
@@ -227,15 +227,15 @@ class AuthorOptionsElement extends HTMLElement {
227227 }
228228
229229 [ Symbol . toStringTag ] ( ) {
230- return 'ChassisHTMLCollection '
230+ return 'AuthorHTMLCollection '
231231 }
232232 }
233233 } ,
234234
235- generateChassisHTMLOptionsCollectionConstructor : ( ) => {
235+ generateAuthorHTMLOptionsCollectionConstructor : ( ) => {
236236 let _p = new WeakMap ( )
237237
238- let ChassisHTMLOptionsCollection = class ChassisHTMLOptionsCollection extends this . PRIVATE . ChassisHTMLCollection ( ) {
238+ let AuthorHTMLOptionsCollection = class AuthorHTMLOptionsCollection extends this . PRIVATE . generateAuthorHTMLCollectionConstructor ( ) {
239239 constructor ( arr , selectedIndex = - 1 , add , remove ) {
240240 super ( arr )
241241 this . selectedIndex = selectedIndex
@@ -246,11 +246,11 @@ class AuthorOptionsElement extends HTMLElement {
246246 }
247247
248248 [ Symbol . toStringTag ] ( ) {
249- return 'ChassisHTMLOptionsCollection '
249+ return 'AuthorHTMLOptionsCollection '
250250 }
251251 }
252252
253- return ChassisHTMLOptionsCollection
253+ return AuthorHTMLOptionsCollection
254254 } ,
255255
256256 generateOptgroup : optgroup => {
@@ -297,9 +297,8 @@ class AuthorOptionsElement extends HTMLElement {
297297
298298 generateOptionConstructor : ( ) => {
299299 let _p = new WeakMap ( )
300- let selectionHandler = this . PRIVATE . optionSelectionHandler
301300
302- return class ChassisOptionObject {
301+ return class AuthorOptionObject {
303302 constructor ( parent , key , sourceElement , displayElement ) {
304303 this . key = key
305304 this . form = parent . form
@@ -450,7 +449,6 @@ class AuthorOptionsElement extends HTMLElement {
450449 let {
451450 cherryPicked,
452451 getCurrentSelection,
453- lastSelectedIndex,
454452 Selection,
455453 selectionStartIndex
456454 } = this . PRIVATE
@@ -485,7 +483,7 @@ class AuthorOptionsElement extends HTMLElement {
485483 cherryPicked,
486484 diffSelections,
487485 getCurrentSelection,
488- generateChassisHTMLCollectionConstructor ,
486+ generateAuthorHTMLCollectionConstructor ,
489487 handleClickSelection,
490488 handleKeyboardSelection,
491489 Selection
@@ -511,7 +509,7 @@ class AuthorOptionsElement extends HTMLElement {
511509 let detail = {
512510 options : selection . options ,
513511 previous : this . selectedOptions ,
514- next : new ( generateChassisHTMLCollectionConstructor ( ) ) ( selection . displayElements )
512+ next : new ( generateAuthorHTMLCollectionConstructor ( ) ) ( selection . displayElements )
515513 }
516514
517515 let cb = ( ) => {
@@ -549,7 +547,7 @@ class AuthorOptionsElement extends HTMLElement {
549547 let index = this . selectedIndex
550548
551549 this . deselectAll ( )
552- this . emit ( 'option.selected' , { index} )
550+ this . emit ( 'option.selected' , { index } )
553551 }
554552
555553 break
0 commit comments