The following code shows how to use the bind method.
// Define the original function. |
In the following example, the thisArg object is different from the object that contains the original method.
// Create an object that contains the original function. |
The following code shows how to use the arg1[,arg2[,argN]]] arguments. The bound function uses the parameters specified in the bind method as the first and second parameters. Any parameters specified when the bound function is called are used as the third, fourth (and so on) parameters.
// Define the original function with four parameters. |