mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +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
|
@ -25,7 +25,7 @@ class IntersectionObserver
|
|||
public:
|
||||
using WrapperType = Bindings::IntersectionObserverWrapper;
|
||||
|
||||
static NonnullRefPtr<IntersectionObserver> create_with_global_object(JS::GlobalObject&, JS::Value callback, IntersectionObserverInit const& options = {});
|
||||
static NonnullRefPtr<IntersectionObserver> create_with_global_object(JS::GlobalObject&, Bindings::CallbackType const& callback, IntersectionObserverInit const& options = {});
|
||||
|
||||
void observe(DOM::Element& target);
|
||||
void unobserve(DOM::Element& target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue