up.event.nobodyPrevents(eventType, eventProps)
JavaScript function
This feature has been deprecated. Use !up.emit(type).defaultPrevented instead.
Load unpoly-migrate.js
to polyfill deprecated features.
Emits an event and returns whether no listener has prevented the default action.
Example
if (up.event.nobodyPrevents('disk:erase')) {
Disk.erase()
})
Parameters
eventType
required
Type: string
eventProps
required
Type: Object
Return value
whether no listener has prevented the default action
Type: boolean