class method Event.fire
Event.fire(element, eventName[, memo[, bubble = true]]) → Event
-
memo
(?
) – Metadata for the event. Will be accessible to event handlers through the event'smemo
property. -
bubble
(Boolean
) – Whether the event should bubble.
Fires a custom event of name eventName
with element
as its target.
Custom events must include a colon (:
) in their names.