A function that returns the source object which contains the original functions to be bound
A function that returns the target object which will receive the bound functions
A function that returns the object which the functions will be bound to
The function names which will be bound (Defaults to all the functions found on the 'from' object)
If true, the binding of the function is delayed until the first time it's invoked
Builds proxy functions on the
to
object which pass through to thefrom
object.For each key in
fnNames
, creates a proxy function on theto
object. The proxy function calls the real function on thefrom
object.Example:
This example creates an new class instance whose functions are prebound to the new'd object.
Example:
This example creates a bound version of a service function, and copies it to another object