浏览代码

Remove Lib.typeof until some inlining issues can be worked out.

Bruno Garcia 13 年之前
父节点
当前提交
63181f9966
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      std/js/Lib.hx

+ 2 - 6
std/js/Lib.hx

@@ -42,18 +42,14 @@ class Lib {
 		return untyped __js__("eval")(code);
 	}
 
-	public static inline function typeof( code : String ) : String {
-		return untyped __js__("typeof")(code);
-	}
-
 	public static inline function setErrorHandler( f ) {
 		onerror = f;
 	}
 
 	static function __init__() {
-		if( typeof("document") != "undefined" )
+		if( untyped __js__("typeof document") != "undefined" )
 			document = untyped __js__("document");
-		if( typeof("window") != "undefined" ) {
+		if( untyped __js__("typeof window") != "undefined" ) {
 			window = untyped __js__("window");
 			window.onerror = function( msg, url, line ) {
 				var f = Lib.onerror;