فهرست منبع

Inline a couple other things in here too.

Bruno Garcia 13 سال پیش
والد
کامیت
80b4f6f079
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      std/js/Lib.hx

+ 2 - 2
std/js/Lib.hx

@@ -38,7 +38,7 @@ class Lib {
 		untyped __js__("alert")(js.Boot.__string_rec(v,""));
 		untyped __js__("alert")(js.Boot.__string_rec(v,""));
 	}
 	}
 
 
-	public static function eval( code : String ) : Dynamic {
+	public static inline function eval( code : String ) : Dynamic {
 		return untyped __js__("eval")(code);
 		return untyped __js__("eval")(code);
 	}
 	}
 
 
@@ -46,7 +46,7 @@ class Lib {
 		return untyped __js__("typeof")(code);
 		return untyped __js__("typeof")(code);
 	}
 	}
 
 
-	public static function setErrorHandler( f ) {
+	public static inline function setErrorHandler( f ) {
 		onerror = f;
 		onerror = f;
 	}
 	}