Event.hasListener()
Checks if a listener is registered to the event.
Syntax
js
events.Event.hasListener(listener)
Parameters
listener-
function. The listener to check.
Return value
A boolean value: true if the listener is 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.