File tree 3 files changed +4
-10
lines changed
3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,8 @@ export class Carousel extends Component<CarouselOptions> {
240
240
window . removeEventListener ( 'resize' , this . _handleThrottledResize ) ;
241
241
}
242
242
243
- _handleThrottledResize : ( ) => void = Utils . throttle (
244
- function ( ) {
245
- this . _handleResize ( ) ;
246
- } ,
243
+ _handleThrottledResize = ( ) : void => Utils . throttle (
244
+ this . _handleResize ,
247
245
200 ,
248
246
null
249
247
) . bind ( this ) ;
Original file line number Diff line number Diff line change @@ -139,9 +139,7 @@ export class ScrollSpy extends Component<ScrollSpyOptions> {
139
139
}
140
140
}
141
141
142
- _handleThrottledResize : ( ) => void = Utils . throttle ( function ( ) {
143
- this . _handleWindowScroll ( ) ;
144
- } , 200 ) . bind ( this ) ;
142
+ _handleThrottledResize = ( ) : void => Utils . throttle ( this . _handleWindowScroll , 200 ) . bind ( this ) ;
145
143
146
144
_handleTriggerClick = ( e : MouseEvent ) => {
147
145
const trigger = e . target ;
Original file line number Diff line number Diff line change @@ -109,9 +109,7 @@ export class TapTarget extends Component<TapTargetOptions> implements Openable {
109
109
window . removeEventListener ( 'resize' , this . _handleThrottledResize ) ;
110
110
}
111
111
112
- _handleThrottledResize : ( ) => void = Utils . throttle ( function ( ) {
113
- this . _handleResize ( ) ;
114
- } , 200 ) . bind ( this ) ;
112
+ _handleThrottledResize = ( ) : void => Utils . throttle ( this . _handleResize , 200 ) . bind ( this ) ;
115
113
116
114
_handleKeyboardInteraction = ( e : KeyboardEvent ) => {
117
115
if ( Utils . keys . ENTER . includes ( e . key ) ) {
You can’t perform that action at this time.
0 commit comments