Skip to content

Commit

Permalink
docs: add docblock to EventTarget OWNER_DOCUMENT property
Browse files Browse the repository at this point in the history
  • Loading branch information
olavoasantos committed Aug 9, 2024
1 parent 5509035 commit df0c6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/polyfill/source/EventTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const ONCE_LISTENERS = Symbol('onceListeners');
export class EventTarget {
[LISTENERS]?: Map<string, Set<EventListenerOrEventListenerObject>>;
[ONCE_LISTENERS]?: WeakMap<EventListenerOrEventListenerObject, EventListener>;
/**
* Property set by entities that extend this class that are part of the DOM tree.
* @internal
*/
[OWNER_DOCUMENT]?: Document;

addEventListener(
Expand Down
1 change: 0 additions & 1 deletion packages/polyfill/source/NamedNodeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
NEXT,
NamespaceURI,
HOOKS,
OWNER_DOCUMENT,
} from './constants.ts';
import type {Attr} from './Attr.ts';
import type {Element} from './Element.ts';
Expand Down

0 comments on commit df0c6de

Please sign in to comment.