summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-29 19:24:53 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-29 19:24:53 -0400
commite7ea080fd332ca563c3e5e4ea4ed24d86ebf884d (patch)
tree8f78a64e57489c9771c50b5960ef9e2dcd5aa342 /webapp/utils
parenta6a0f18166a29dd22525b690d8141961dbecdb9d (diff)
downloadchat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.tar.gz
chat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.tar.bz2
chat-e7ea080fd332ca563c3e5e4ea4ed24d86ebf884d.zip
Fixing react warnings on permalink return
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/delayed_action.jsx4
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);
+ }
}