← Back to release summary

Support "once" event listener option

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 55)
Intent stage
None

Summary

Support adding event listeners with the "once" option set to true. When set to true, options’s once member indicates that the callback will only be invoked once after which the event listener will be removed.

Standards & signals

Docs: https://developers.google.com/web/updates/2016/10/addeventlistener-once

View on chromestatus.com