소스 검색

mark fixes

Nicolas Cannasse 19 년 전
부모
커밋
b81288cac1
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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