summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-03-30 23:45:36 +0300
committerAndreas Kling <kling@serenityos.org>2022-03-31 01:10:47 +0200
commitb267c4178afb0acba4993676dcc0afc77333058a (patch)
tree2a2dee5b814af70a1e1b094353308f1cd512b544 /Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl
parentf45d361f037509edc653e29c88ce591678e562fa (diff)
downloadserenity-b267c4178afb0acba4993676dcc0afc77333058a.zip
LibWeb: Use a callback function in IntersectionObserver IDL
Diffstat (limited to 'Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl')
-rw-r--r--Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl
index c5d2a4bbfc..1cc24b6a93 100644
--- a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl
+++ b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.idl
@@ -1,10 +1,11 @@
#import <DOM/Element.idl>
#import <DOM/Node.idl>
+callback IntersectionObserverCallback = undefined (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer);
+
[Exposed=(Window)]
interface IntersectionObserver {
- // FIXME: Should be: IntersectionObserverCallback
- constructor(any callback, optional IntersectionObserverInit options = {});
+ constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options = {});
undefined observe(Element target);
undefined unobserve(Element target);