diff options
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); + } } |