mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
LibWeb: Use a callback function in IntersectionObserver IDL
This commit is contained in:
parent
f45d361f03
commit
b267c4178a
3 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue