bind

creates a new function that when called has its this keyword set to the provided value

function bind(function method,object thisArg);
methodfunctionthe target function
thisArgobjectthe value to be passed as the this parameter to the target function when the bound function is called
functiona new function that when called has its this keyword that will be passed to the target function

Example

scheduler.bind(method, thisArg);

Details

The method is used as the IE8 compatible replacement of the Function.prototype.bind() function.

Change log

added in version 6.0

Back to top