浏览代码

[js] make Browser.get_supported function private and inline instead of public, as I suppose it was meant to be like that

Dan Korostelev 10 年之前
父节点
当前提交
5f0b703fba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/js/Browser.hx

+ 1 - 1
std/js/Browser.hx

@@ -44,7 +44,7 @@ class Browser {
 	 * environment such as node.js.
 	 * environment such as node.js.
 	 */
 	 */
 	public static var supported(get, never):Bool;
 	public static var supported(get, never):Bool;
-	public static function get_supported() return untyped __js__("typeof window != \"undefined\"");
+	inline static function get_supported() return untyped __js__("typeof window != \"undefined\"");
 
 
 	/**
 	/**
 	 * Safely gets the browser's local storage, or returns null if localStorage is unsupported or
 	 * Safely gets the browser's local storage, or returns null if localStorage is unsupported or