ソースを参照

JS extern fixes missing from last commit.

Bruno Garcia 10 年 前
コミット
a1b0f10912
2 ファイル変更6 行追加6 行削除
  1. 2 2
      std/js/Browser.hx
  2. 4 4
      std/js/JQuery.hx

+ 2 - 2
std/js/Browser.hx

@@ -25,10 +25,10 @@ import js.html.Storage;
 import js.html.XMLHttpRequest;
 
 class Browser {
-	public static var window(get, never):js.html.DOMWindow;
+	public static var window(get, never):js.html.Window;
 	inline static function get_window() return untyped __js__("window");
 
-	public static var document(get, never):js.html.Document;
+	public static var document(get, never):js.html.HTMLDocument;
 	inline static function get_document() return untyped __js__("window.document");
 
 	public static var location(get, never):js.html.Location;

+ 4 - 4
std/js/JQuery.hx

@@ -21,7 +21,7 @@
  */
 package js;
 
-import js.html.DOMWindow;
+import js.html.Window;
 import js.html.Element;
 
 typedef JqEvent = {
@@ -64,10 +64,10 @@ typedef JqEvent = {
 
 extern class JQueryHelper {
 	@:overload(function(j:JQuery):JQuery{})
-	@:overload(function(j:DOMWindow):JQuery{})
+	@:overload(function(j:Window):JQuery{})
 	@:overload(function(j:Element):JQuery { } )
 
-	public static inline function J( html : haxe.EitherType<String,haxe.EitherType<JQuery,haxe.EitherType<DOMWindow,Element>>> ) : JQuery {
+	public static inline function J( html : haxe.EitherType<String,haxe.EitherType<JQuery,haxe.EitherType<Window,Element>>> ) : JQuery {
         return new JQuery(cast html);
     }
 
@@ -86,7 +86,7 @@ extern class JQuery implements ArrayAccess<Element> {
 	var length(default, null) : Int;
 
 	@:overload(function(j:JQuery):Void{})
-	@:overload(function(j:DOMWindow):Void{})
+	@:overload(function(j:Window):Void{})
 	@:overload(function(j:Element):Void{})
 	function new( html : String ) : Void;