Questions API Methods
on()
Binds a callback function that will be invoked whenever the eventName is triggered.
To supply a context to execute the callback on, pass the optional third argument.
Arguments
-
eventName string
Name of the event that you want to stop listening to
-
eventCallback callback
If no callback is provided, all event handlers for the eventName will be removed.
-
context object
If no context is provided, all event bindings for the eventName, eventCallback combination will be removed
Return value
None (undefined
).