Browse Source

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.
Andreas Kling 3 years ago
parent
commit
643e2dec2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibWeb/Bindings/WindowObject.cpp

+ 1 - 1
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();
 }