EventListenerManager

A simple manager class for handling listeners added to an event target.

This class is useful for when you want to add listeners to an element and then remove them all later, say when some wrapping class gets disposed.

Constructors

Link copied to clipboard
constructor(target: EventTarget)

Functions

Link copied to clipboard
fun addEventListener(type: String, listener: (Event) -> Unit)
fun addEventListener(type: String, listener: EventListener)
Link copied to clipboard