Skip to content

Commit a126834

Browse files
authored
1 parent e0ac68e commit a126834

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

interfaces/intersection-observer.idl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
77

8-
[Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
9-
Exposed=Window]
8+
[Exposed=Window]
109
interface IntersectionObserver {
10+
constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
1111
readonly attribute Node? root;
1212
readonly attribute DOMString rootMargin;
1313
readonly attribute FrozenArray<double> thresholds;
@@ -17,8 +17,9 @@ interface IntersectionObserver {
1717
sequence<IntersectionObserverEntry> takeRecords();
1818
};
1919

20-
[Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
20+
[Exposed=Window]
2121
interface IntersectionObserverEntry {
22+
constructor(IntersectionObserverEntryInit intersectionObserverEntryInit);
2223
readonly attribute DOMHighResTimeStamp time;
2324
readonly attribute DOMRectReadOnly? rootBounds;
2425
readonly attribute DOMRectReadOnly boundingClientRect;

0 commit comments

Comments
 (0)