Skip to content

Commit

Permalink
[js] make std Math getters private so they don't show up in completion
Browse files Browse the repository at this point in the history
  • Loading branch information
nadako committed Sep 6, 2014
1 parent 6c6fc38 commit ff6c2aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/js/_std/Math.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ extern class Math
static var PI(default,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"));
}

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"));
}

static var NaN(get, null) : Float;
static inline function get_NaN () : Float {
private static inline function get_NaN () : Float {
return (untyped __js__("NaN"));
}

Expand Down

0 comments on commit ff6c2aa

Please sign in to comment.