up.layer.emit(eventType, [props])
JavaScript function
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.
Parameters
eventType
required
The event type, e.g. my:event.
Type: string
[props={}]
optional
A list of properties to become part of the event object that will be passed to listeners.
Type: Object
[props.log]
Return value
The emitted event object.
Type: Event