Skip to content

Commit 30c646e

Browse files
committed
Call clearTimeout directly
1 parent a6ee480 commit 30c646e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Collapse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ export class Collapse extends React.Component {
8383

8484

8585
componentWillUnmount() {
86-
global.clearTimeout(this.timeout);
86+
clearTimeout(this.timeout);
8787
}
8888

8989

9090
onResize = () => {
91-
global.clearTimeout(this.timeout);
91+
clearTimeout(this.timeout);
9292

9393
if (!this.container || !this.content) {
9494
return;

0 commit comments

Comments
 (0)