mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Use a callback function in IntersectionObserver IDL
This commit is contained in:
committed by
Andreas Kling
parent
f45d361f03
commit
b267c4178a
Notes:
sideshowbarker
2024-07-17 16:26:41 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/b267c4178a Pull-request: https://github.com/SerenityOS/serenity/pull/13369 Reviewed-by: https://github.com/alimpfard ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user