Subset of standard AddEventListenerOptions.
AddEventListenerOptions
Optional
Defaults to false. If true, the event listener is automatically removed after the first time its fired.
false
true
// Example syntax object.addEventListener('click', (event) => { console.log(event) }, { once: true })
Subset of standard
AddEventListenerOptions.