Object | +--Function
| Method Summary * Parameter types in italic indicate optional parameters | |
Function
|
createCallback()
Creates a callback that passes arguments[0], arguments[1], arguments[2], ... |
Function
|
createDelegate(<Object> obj, <Array> args, <Boolean> appendArgs)
Creates a delegate (callback) that sets the scope to obj. |
Function
|
createInterceptor(<Function> fcn, <Object> scope)
Creates an interceptor function. |
Function
|
createSequence(<Function> fcn, <Object> scope)
Create a combined function call sequence of the original function + the passed function. |
| Method Detail |
Function createCallback()
myFunction.createCallback(myarg, myarg2)
Will create a function that is bound to those 2 args.Function createDelegate(<Object> obj, <Array> args, <Boolean> appendArgs)
this.myFunction.createDelegate(this)
Will create a function that is automatically scoped to this.obj - The object for which the scope is set
args - (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)
appendArgs - (optional) if True args are appended to call args instead of overriding
Function createInterceptor(<Function> fcn, <Object> scope)
fcn - The function to call before the original
scope - (optional) The scope of the passed fcn (Defaults to scope of original function or window)
Function createSequence(<Function> fcn, <Object> scope)
fcn - The function to sequence
scope - (optional) The scope of the passed fcn (Defaults to scope of original function or window)