@@ -381,7 +381,7 @@ var getElements = (element, context) => typeof element === 'string' ?
381381 :
382382 element . length >= 0 ? element : [ element ] ;
383383
384- const instances = [ ] ;
384+ const instances$2 = [ ] ;
385385
386386class ThrottledEvent extends MainLoopEntry {
387387 constructor ( target , eventType , name ) {
@@ -418,10 +418,10 @@ class ThrottledEvent extends MainLoopEntry {
418418 }
419419
420420 destroy ( ) {
421- const index = instances . indexOf ( this ) ;
421+ const index = instances$2 . indexOf ( this ) ;
422422
423423 if ( index > - 1 ) {
424- instances . splice ( index , 1 ) ;
424+ instances$2 . splice ( index , 1 ) ;
425425 }
426426
427427 this . _target . removeEventListener ( this . _eventType , this . _onEvent ) ;
@@ -477,25 +477,25 @@ class ThrottledEvent extends MainLoopEntry {
477477
478478 name = name || '' ;
479479
480- for ( let i = 0 ; i < instances . length ; i ++ ) {
481- let instance = instances [ i ] ;
480+ for ( let i = 0 ; i < instances$2 . length ; i ++ ) {
481+ let instance = instances$2 [ i ] ;
482482 if ( instance . _eventType === eventType && instance . _target === target && instance . _name === name ) {
483- found = instances [ i ] ;
483+ found = instances$2 [ i ] ;
484484 break
485485 }
486486 }
487487
488488 if ( ! found ) {
489489 found = new ThrottledEvent ( target , eventType , name ) ;
490- instances . push ( found ) ;
490+ instances$2 . push ( found ) ;
491491 }
492492
493493 return found
494494 }
495495
496496 static destroy ( ) {
497- while ( instances [ 0 ] ) {
498- instances [ 0 ] . destroy ( ) ;
497+ while ( instances$2 [ 0 ] ) {
498+ instances$2 [ 0 ] . destroy ( ) ;
499499 }
500500 }
501501}
@@ -722,7 +722,7 @@ function getMinOrMax(v) {
722722const
723723 instances$1 = [ ] ;
724724let autoRefreshTimer = null ,
725- resize = null ,
725+ resize$1 = null ,
726726 scroll = null ;
727727
728728class ScrollObserver extends MainLoopEntry {
@@ -737,10 +737,10 @@ class ScrollObserver extends MainLoopEntry {
737737 this . _needsUpdate = true ;
738738 this . _lastSize = getDocumentScrollSize ( ) ;
739739
740- resize = resize || new ThrottledEvent ( window , 'resize' ) ;
740+ resize$1 = resize$1 || new ThrottledEvent ( window , 'resize' ) ;
741741 scroll = scroll || new ThrottledEvent ( window , 'scroll' ) ;
742742
743- resize . add ( 'resize' , this . _onResize ) ;
743+ resize$1 . add ( 'resize' , this . _onResize ) ;
744744 scroll . add ( 'scrollstart' , this . _onScroll ) ;
745745
746746 instances$1 . push ( this ) ;
@@ -757,11 +757,11 @@ class ScrollObserver extends MainLoopEntry {
757757
758758 if ( instances$1 . length === 0 ) {
759759 ScrollObserver . stopAutoRefresh ( ) ;
760- resize . destroy ( ) ;
760+ resize$1 . destroy ( ) ;
761761 scroll . destroy ( ) ;
762- resize = scroll = null ;
762+ resize$1 = scroll = null ;
763763 } else {
764- resize . remove ( 'resize' , this . _onResize ) ;
764+ resize$1 . remove ( 'resize' , this . _onResize ) ;
765765 scroll . remove ( 'scrollstart' , this . _onScroll ) ;
766766 }
767767 }
@@ -904,10 +904,10 @@ ScrollObserver.autoRefreshDelay = 1000;
904904/* eslint-disable no-empty-character-class */
905905
906906const
907- instances$2 = [ ] ,
907+ instances = [ ] ,
908908 specialCharRegExp = / ( ( (?: [ \u2700 - \u27bf ] | (?: \ud83c [ \udde6 - \uddff ] ) { 2 } | [ \ud800 - \udbff ] [ \udc00 - \udfff ] | [ \u0023 - \u0039 ] \ufe0f ? \u20e3 | \u3299 | \u3297 | \u303d | \u3030 | \u24c2 | \ud83c [ \udd70 - \udd71 ] | \ud83c [ \udd7e - \udd7f ] | \ud83c \udd8e | \ud83c [ \udd91 - \udd9a ] | \ud83c [ \udde6 - \uddff ] | [ \ud83c [ \ude01 - \ude02 ] | \ud83c \ude1a | \ud83c \ude2f | [ \ud83c [ \ude32 - \ude3a ] | [ \ud83c [ \ude50 - \ude51 ] | \u203c | \u2049 | [ \u25aa - \u25ab ] | \u25b6 | \u25c0 | [ \u25fb - \u25fe ] | \u00a9 | \u00ae | \u2122 | \u2139 | \ud83c \udc04 | [ \u2600 - \u26FF ] | \u2b05 | \u2b06 | \u2b07 | \u2b1b | \u2b1c | \u2b50 | \u2b55 | \u231a | \u231b | \u2328 | \u23cf | [ \u23e9 - \u23f3 ] | [ \u23f8 - \u23fa ] | \ud83c \udccf | \u2934 | \u2935 | [ \u2190 - \u21ff ] ) ( ( \u200D ( \u2640 | \u2642 ) \uFE0F ) | [ ] ) ) | & ( [ a - z A - Z ] { 2 , 6 } | # [ 0 - 9 ] { 2 , 5 } ) ; | < | > ) / g,
909909 whiteCharRegExp = / ( \s ) / ;
910- let resize$1 = null ;
910+ let resize = null ;
911911
912912class SplittedText {
913913 constructor ( element , options ) {
@@ -917,35 +917,35 @@ class SplittedText {
917917 this . _element = element ;
918918 this . _onResize = this . split . bind ( this ) ;
919919
920- if ( ! resize$1 ) {
921- resize$1 = new ThrottledEvent ( window , 'resize' ) ;
920+ if ( ! resize ) {
921+ resize = new ThrottledEvent ( window , 'resize' ) ;
922922 }
923923
924924 if ( this . autoSplit ) {
925925 this . split ( ) ;
926926 }
927927
928- instances$2 . push ( this ) ;
928+ instances . push ( this ) ;
929929 }
930930
931931 destroy ( ) {
932- const index = instances$2 . indexOf ( this ) ;
932+ const index = instances . indexOf ( this ) ;
933933
934934 if ( index > - 1 ) {
935935 this . restore ( ) ;
936936
937- instances$2 . splice ( index , 1 ) ;
937+ instances . splice ( index , 1 ) ;
938938
939- if ( ! instances$2 . length ) {
940- resize$1 . destroy ( ) ;
941- resize$1 = null ;
939+ if ( ! instances . length ) {
940+ resize . destroy ( ) ;
941+ resize = null ;
942942 }
943943 }
944944 }
945945
946946 restore ( ) {
947947 this . _element . innerHTML = this . _originalInnerHTML ;
948- resize$1 . remove ( 'resize' , this . _onResize ) ;
948+ resize . remove ( 'resize' , this . _onResize ) ;
949949
950950 return this
951951 }
@@ -973,7 +973,7 @@ class SplittedText {
973973 html = '' ,
974974 lastOffsetTop = children [ 0 ] . offsetTop ;
975975
976- resize$1 . add ( 'resize' , this . _onResize ) ;
976+ resize . add ( 'resize' , this . _onResize ) ;
977977
978978 for ( let i = 0 ; i < children . length ; i ++ ) {
979979 const
@@ -1117,8 +1117,8 @@ function wrapByWord(element, wrapper) {
11171117// static
11181118// ----
11191119SplittedText . destroy = function ( ) {
1120- while ( instances$2 [ 0 ] ) {
1121- instances$2 [ 0 ] . destroy ( ) ;
1120+ while ( instances [ 0 ] ) {
1121+ instances [ 0 ] . destroy ( ) ;
11221122 }
11231123} ;
11241124
0 commit comments