src code

instance method Function#bindAsEventListener

Function#bindAsEventListener(object[, args...]) → Function
  • object (Object) – The object to bind to.

An event-specific variant of Function#bind which ensures the function will recieve the current event object as the first argument when executing.