API Documentation for: 1.1.2
Show:

Function.prototype.bind Class

Namespace: global

Designed to provide utility related to functions, the most important of which is the Bind function, used to properly scope callbacks. Add the bind functionality to the Function prototype this allows passing a reference in the function callback

callback.bind(this)
callback.bind(this, arg1)

Constructor

Function.prototype.bind

(
  • that
  • [args*]
)
Function

Parameters:

  • that Object

    The reference to the function.

  • [args*] Mixed optional

    Additional arguments

Returns:

Function:

The new function binding.

Item Index