Emits an event on the current layer's element.
This is a shortcut for up.layer.current.emit().
See up.Layer#emit() for more documentation.
The event type, e.g. my:event.
A list of properties to become part of the event object that will be passed to listeners.
The emitted event object.
Tip Your coding agent can search these docs locally with the Unpoly agent skill