timer.js
No description.

File Location

/goog/timer/timer.js

Classes

goog.Timer
Class for handling timing events.

Public Protected Private

Global Functions

goog.Timer.callOnce(opt_delayopt_handler) number
Calls the given function once, after the optional pause. The function is always called asynchronously, even if the delay is 0. This is a common trick to schedule a function to run after a batch of browser event processing.
Arguments:
: function(this:SCOPE) | {handleEvent:function()
No description.
opt_delay : number=
Milliseconds to wait; default is 0.
opt_handler : SCOPE=
Object in whose scope to call the listener.
Returns: number  A handle to the timer ID.
code »
goog.Timer.clear(timerId)
Clears a timeout initiated by callOnce
Arguments:
timerId : ?number
a timer ID.
code »

Directory timer

File Reference