diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-29 19:24:53 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-29 19:24:53 -0400 |
commit | e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d (patch) | |
tree | 8f78a64e57489c9771c50b5960ef9e2dcd5aa342 /webapp/utils/delayed_action.jsx | |
parent | a6a0f18166a29dd22525b690d8141961dbecdb9d (diff) | |
download | chat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.tar.gz chat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.tar.bz2 chat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.zip |
Fixing react warnings on permalink return
Diffstat (limited to 'webapp/utils/delayed_action.jsx')
-rw-r--r-- | webapp/utils/delayed_action.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/utils/delayed_action.jsx b/webapp/utils/delayed_action.jsx index 4f6239ad0..c3b164733 100644 --- a/webapp/utils/delayed_action.jsx +++ b/webapp/utils/delayed_action.jsx @@ -24,4 +24,8 @@ export default class DelayedAction { this.timer = window.setTimeout(this.fire, timeout); } + + cancel() { + window.clearTimeout(this.timer); + } } |