Interface LCJSAddEventListenerOptions

Subset of standard AddEventListenerOptions.

Hierarchy

  • LCJSAddEventListenerOptions

Properties

Properties

once?: boolean

Defaults to false. If true, the event listener is automatically removed after the first time its fired.

 // Example syntax
object.addEventListener('click', (event) => {
console.log(event)
}, { once: true })