Browse Source

mark fixes

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
b81288cac1
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      std/IntHash.hx

+ 3 - 3
std/IntHash.hx

@@ -34,7 +34,7 @@ class IntHash<T> {
 	**/
 	public function new() : Void {
 		#if flash
-		h = untyped __new__(Object);
+		h = untyped __new__(_global["Object"]);
 		#else neko
 		h = untyped __dollar__hnew(0);
 		#else js
@@ -82,7 +82,7 @@ class IntHash<T> {
 	**/
 	public function exists( key : Int ) : Bool {
 		#if flash
-		return untyped h.hasOwnProperty(key);
+		return untyped h["hasOwnProperty"](key);
 		#else js
 		return untyped h[key] != null;
 		#else neko
@@ -97,7 +97,7 @@ class IntHash<T> {
 	**/
 	public function remove( key : Int ) : Bool {
 		#if flash
-		if( untyped !h.hasOwnProperty(key) ) return false;
+		if( untyped !h["hasOwnProperty"](key) ) return false;
 		untyped __delete__(h,key);
 		return true;
 		#else js