Fires event with given name
, given scope and other parameters.
.
) or slash (/
) separatedReturns: array array of errors, if any. Each element of the array is in format:
{
error: // error message,
func: // handler that caused error
}
Internal method which gives you array of all event handlers that will be triggered by the given name
.
.
) or slash (/
) separatedReturns: array array of event handlers
Could be used inside event handler to figure out actual name of the event.
ArgumentsReturns: string name of the event, if subname
is not specified
or
Returns: boolean true
, if current event’s name contains subname
Binds given event handler with a given name. You can use wildcards “*
” for the names:
eve.on("*.under.*", f);
eve("mouse.under.floor"); // triggers f
Use eve to trigger the listener.
Arguments.
) or slash (/
) separated, with optional wildcardsReturns: boolean false
if given function already assigned as event handler to given name, true
otherwise
Removes given function from the list of event listeners assigned to given name.
Arguments.
) or slash (/
) separated, with optional wildcardsCurrent version of the library.