Browse Source

mark fixes

Nicolas Cannasse 19 years ago
parent
commit
b81288cac1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      std/IntHash.hx

+ 3 - 3
std/IntHash.hx

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