Explorar o código

Replace setTimeout timeout: Int with : Float, fixes #8223

George Corney %!s(int64=6) %!d(string=hai) anos
pai
achega
c73f811577
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      std/js/html/Window.hx

+ 2 - 2
std/js/html/Window.hx

@@ -566,8 +566,8 @@ extern class Window extends EventTarget {
 	/** @throws DOMError */
 	function atob( atob : String ) : String;
 	/** @throws DOMError */
-	@:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
-	function setTimeout( handler : String, timeout : Int = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
+	@:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )
+	function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;
 	function clearTimeout( handle : Int = 0 ) : Void;
 	/** @throws DOMError */
 	@:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )