SAPO->bindObj

Creates a delegate (callback) that sets the scope to obj.

Call directly on any function.

Will create a function that is automatically scoped to this.

Syntax

this.myFunction.bindObj(this)

Compatibility

All browsersYes

Depends

  • none

Input Parameters

  • (object) obj : The object for which the scope is set
  • (array) args : (optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)

Output

  • function : The new function

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found