File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,8 @@ export default class InfiniteScroll extends Component<Props, State> {
7272 : this . _scrollableNode || window ;
7373
7474 if ( this . el ) {
75- this . el . addEventListener ( 'scroll' , e =>
76- this . throttledOnScrollListener ( e as MouseEvent )
77- ) ;
75+ this . el . addEventListener ( 'scroll' , this
76+ . throttledOnScrollListener as EventListenerOrEventListenerObject ) ;
7877 }
7978
8079 if (
@@ -116,9 +115,8 @@ export default class InfiniteScroll extends Component<Props, State> {
116115
117116 componentWillUnmount ( ) {
118117 if ( this . el ) {
119- this . el . removeEventListener ( 'scroll' , e =>
120- this . throttledOnScrollListener ( e as MouseEvent )
121- ) ;
118+ this . el . removeEventListener ( 'scroll' , this
119+ . throttledOnScrollListener as EventListenerOrEventListenerObject ) ;
122120
123121 if ( this . props . pullDownToRefresh ) {
124122 this . el . removeEventListener ( 'touchstart' , this . onStart ) ;
You can’t perform that action at this time.
0 commit comments