Skip to content

Commit

Permalink
Merge pull request #72 from Monterra/master
Browse files Browse the repository at this point in the history
clearing delayShowLoop-Timeout when component will unmount
  • Loading branch information
wwayne committed Jan 21, 2016
2 parents b4c38df + 80473b9 commit ca9bd32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/react-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ var ReactTooltip = (function (_Component) {
};

ReactTooltip.prototype.componentWillUnmount = function componentWillUnmount() {
clearTimeout(this.delayShowLoop);
this.unbindListener();
this.removeScrollListener();
this.mount = false;
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default class ReactTooltip extends Component {
}

componentWillUnmount () {
clearTimeout(this.delayShowLoop)
this.unbindListener()
this.removeScrollListener()
this.mount = false
Expand Down

0 comments on commit ca9bd32

Please sign in to comment.