Event.hasListeners()

Checks if any listeners are registered to the event.

Syntax

js
events.Event.hasListeners()

Parameters

None.

Return value

A boolean value: true if any listeners are registered to the event. Otherwise, false.

Browser compatibility

Note: This API is based on Chromium's chrome.events API. This documentation is derived from events.json in the Chromium code.