External: Function

Function

The built in Function Object
Source:
function.js, line 9
See:

Methods

defer(context) → {Number}

Executes a function as soon as the interpreter is idle (stack empty).
Parameters:
Name Type Argument Description
context Object The execution context of the deferred function.
arguments... <optional>
Optional additional arguments to carry for the function.
Source:
function.js, line 30
Returns:
id that can be used to clear the deferred function using clearTimeout
Type
Number
Example
// execute myFunc() when the stack is empty,
// with the current context and 'myArgument' as parameter
myFunc.defer(this, 'myArgument');