_.delay() - killing the timer

Katmassive

New Member
Just curious if there is a way to kill the timer in the \[code\]_.delay\[/code\] function in the \[code\]underscore.js\[/code\] library. It is using \[code\]setTimeout()\[/code\] in the annotated source but I can't figure out the actual way to do this.An example would be:\[code\]_.delay(this.functionName, 5000)\[/code\]If this has not been called at 3 seconds and I want to stop \[code\]functionName\[/code\] being called, can I kill the timer early?thanks!
 
Top