If I have set a timeout in javascript
var myTimeoutId = setTimeout( function(){
... do some stuff ....
}, 15000);
and a different event makes me need to have that timeout execute immediate, is there a way that I can use that stored id to execute the function? I know that I could store off a reference to that function, call clearTimeout on myTimeoutId and then call the function directly, but there's a decent amount of book keeping involved in that.
Is there a function along the lines of executeNow( myTimeoutId ) ?