Implementers MAY provide this method definition.
Implement this function if the event supports a different
subscription signature. This function is used by both
on()
and delegate()
. The second parameter
indicates that the event is being subscribed via
delegate()
.
Implementations must remove extra arguments from the args list
before returning. The required args for on()
subscriptions are
[type, callback, target, context, argN...]
The required args for delegate()
subscriptions are
[type, callback, target, filter, context, argN...]
The return value from this function will be stored on the
subscription in the '_extra' property for reference elsewhere.