Show:

Function Class

Q extended methods for Functions

Item Index

Methods

Methods

bind

(
  • method
  • obj
  • [arg1]
)

Binds a method to an object, so "this" inside the method refers to that object when it is called.

Parameters:

  • method Function

    A reference to the function to call

  • obj Object

    The object to bind as the context for the function call

  • [arg1] Mixed optional

    Optionally add arguments to be prepended to the called arguments