Skip to content
Snippets Groups Projects

[#3199794] Fixed a typo in 'Using a single element' Example.

Merged Jibran Ijaz requested to merge issue/once-3199794:3199794-fix-typo into 1.0.x
+ 1
1
@@ -249,7 +249,7 @@ function updateAttribute(element, { add, remove }) {
* // Single Element.
* once('my-once-id', document.querySelector('#some-id'));
* @example <caption>Using a single element</caption>
* // Once always returns an array, event when passing a single element. Some
* // Once always returns an array, even when passing a single element. Some
* // forms that can be used to keep code readable.
* // Destructuring:
* const [myElement] = once('my-once-id', document.body);
Loading