Last active
January 18, 2018 22:58
-
-
Save c0depanda/b55df34ad920db0a143faca36ad66484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cancel = (e) => { | |
// Check if timer has a value or not | |
if (pressTimer !== null) { | |
clearTimeout(pressTimer) | |
pressTimer = null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment