瀏覽代碼

[js] make std Math getters private so they don't show up in completion

Dan Korostelev 11 年之前
父節點
當前提交
ff6c2aa87b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/js/_std/Math.hx

+ 3 - 3
std/js/_std/Math.hx

@@ -29,17 +29,17 @@ extern class Math
 	static var PI(default,null) : Float;
 	static var PI(default,null) : Float;
 
 
 	static var NEGATIVE_INFINITY(get, null) : Float;
 	static var NEGATIVE_INFINITY(get, null) : Float;
-	static inline function get_NEGATIVE_INFINITY () : Float {
+	private static inline function get_NEGATIVE_INFINITY () : Float {
 		return -(untyped __js__("Infinity"));
 		return -(untyped __js__("Infinity"));
 	}
 	}
 
 
 	static var POSITIVE_INFINITY(get,null) : Float;
 	static var POSITIVE_INFINITY(get,null) : Float;
-	static inline function get_POSITIVE_INFINITY () : Float {
+	private static inline function get_POSITIVE_INFINITY () : Float {
 		return (untyped __js__("Infinity"));
 		return (untyped __js__("Infinity"));
 	}
 	}
 
 
 	static var NaN(get, null) : Float;
 	static var NaN(get, null) : Float;
-	static inline function get_NaN () : Float {
+	private static inline function get_NaN () : Float {
 		return (untyped __js__("NaN"));
 		return (untyped __js__("NaN"));
 	}
 	}