Add support for EventListener Object

See: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Support for native javascript eventListener.handleEvent()

Typedef not correct yet.
This commit is contained in:
Lydia de Jongh
2020-03-10 12:51:05 +01:00
parent 9f76ec197a
commit e099257461
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import {clear} from './obj.js';
* Listener function. This function is called with an event object as argument.
* When the function returns `false`, event propagation will stop.
*
* @typedef {function((Event|import("./events/Event.js").default)): (void|boolean)} ListenerFunction
* @typedef {EventListener|function((Event|import("./events/Event.js").default)): (void|boolean)} ListenerFunction
* @api
*/