Edit this page

up.event 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 string
eventProps Object

Return value

boolean

whether no listener has prevented the default action