소스 검색

opt params

Nicolas Cannasse 18 년 전
부모
커밋
7eaa004333
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      std/js/Dom.hx

+ 2 - 2
std/js/Dom.hx

@@ -678,11 +678,11 @@ typedef Window = {
 	function moveBy( dx : Int, dy : Int ) : Void;
 	function moveTo( x : Int, y : Int ) : Void;
 	function print() : Void;
-	function prompt( msg : String ) : String;
+	function prompt( msg : String, ?def : String ) : String;
 	// FF1.5 resizeTo
 	function scrollBy( dx : Int, dy : Int ) : Void;
 	function scrollTo( x : Int, y : Int ) : Void;
-	function open( url : String, name : String, features : String ) : Window;
+	function open( url : String, ?name : String, ?features : String ) : Window;
 	// setInterval
 	// setTimeout