Browse Source

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

Bruno Garcia 13 years ago
parent
commit
63181f9966
1 changed files with 2 additions and 6 deletions
  1. 2 6
      std/js/Lib.hx

+ 2 - 6
std/js/Lib.hx

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