File tree 4 files changed +4969
-982
lines changed
4 files changed +4969
-982
lines changed Original file line number Diff line number Diff line change 489
489
name = String ( name ) ;
490
490
if ( map [ name ] ) {
491
491
// eslint-disable-next-line no-param-reassign
492
- name = name . replace ( / (?: \( ( [ \d ] + ) \) ) ? ( \. [ ^ . ] + ) ? $ / , function (
493
- _ ,
494
- p1 ,
495
- p2
496
- ) {
497
- var index = p1 ? Number ( p1 ) + 1 : 1 ;
498
- var ext = p2 || '' ;
499
- return ' (' + index + ')' + ext ;
500
- } ) ;
492
+ name = name . replace (
493
+ / (?: \( ( [ \d ] + ) \) ) ? ( \. [ ^ . ] + ) ? $ / ,
494
+ function ( _ , p1 , p2 ) {
495
+ var index = p1 ? Number ( p1 ) + 1 : 1 ;
496
+ var ext = p2 || '' ;
497
+ return ' (' + index + ')' + ext ;
498
+ }
499
+ ) ;
501
500
return this . _getUniqueFilename ( name , map ) ;
502
501
}
503
502
map [ name ] = true ;
Original file line number Diff line number Diff line change 660
660
) {
661
661
return ;
662
662
}
663
- return ( typeof handler === 'string'
664
- ? instance [ handler ]
665
- : handler
663
+ return (
664
+ typeof handler === 'string' ? instance [ handler ] : handler
666
665
) . apply ( instance , arguments ) ;
667
666
}
668
667
699
698
_delay : function ( handler , delay ) {
700
699
var instance = this ;
701
700
function handlerProxy ( ) {
702
- return ( typeof handler === 'string'
703
- ? instance [ handler ]
704
- : handler
701
+ return (
702
+ typeof handler === 'string' ? instance [ handler ] : handler
705
703
) . apply ( instance , arguments ) ;
706
704
}
707
705
return setTimeout ( handlerProxy , delay || 0 ) ;
737
735
738
736
data = data || { } ;
739
737
event = $ . Event ( event ) ;
740
- event . type = ( type === this . widgetEventPrefix
741
- ? type
742
- : this . widgetEventPrefix + type
738
+ event . type = (
739
+ type === this . widgetEventPrefix ? type : this . widgetEventPrefix + type
743
740
) . toLowerCase ( ) ;
744
741
745
742
// The original event may come from any element
You can’t perform that action at this time.
0 commit comments