Bruno Garcia 11 lat temu
rodzic
commit
48acf328f6
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      std/js/_std/Math.hx

+ 4 - 0
std/js/_std/Math.hx

@@ -80,4 +80,8 @@ extern class Math
 	static inline function isNaN( f : Float ) : Bool {
 	static inline function isNaN( f : Float ) : Bool {
 		return (untyped __js__("isNaN"))(f);
 		return (untyped __js__("isNaN"))(f);
 	}
 	}
+
+	static function __init__() : Void {
+		untyped __feature__("Type.resolveClass", $hxClasses["Math"] = Math);
+	}
 }
 }