diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-04 11:56:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-04 12:13:25 +0200 |
commit | 643e2dec2c1d453abb51ee6d3b9abe8b6b32108c (patch) | |
tree | 78ae5955ecb3a693559d809aa657d011a434a4c3 /Userland | |
parent | 7af7fc8c16749b6740e9307742c5356acf50ccca (diff) | |
download | serenity-643e2dec2c1d453abb51ee6d3b9abe8b6b32108c.zip |
LibWeb: Make WindowObject::clear_interval() call correct function
This was incorrectly calling DOM::Window::clear_timeout(). In practice,
these functions are interchangeable, but let's have things looking
correct regardless.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/WindowObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp index 146cf27129..e8876a3984 100644 --- a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp +++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp @@ -341,7 +341,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::clear_interval) i32 timer_id = vm.argument(0).to_i32(global_object); if (vm.exception()) return {}; - impl->clear_timeout(timer_id); + impl->clear_interval(timer_id); return JS::js_undefined(); } |