Nicolas Cannasse 17 年之前
父节点
当前提交
5cd2d94959
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/Hash.hx

+ 3 - 3
std/Hash.hx

@@ -163,14 +163,14 @@ class Hash<T> {
 		#if flash9
 		return untyped {
 			ref : h,
-			it : keys(),
+			it : __keys__(h).iterator(),
 			hasNext : function() { return this.it.hasNext(); },
 			next : function() { var i : Dynamic = this.it.next(); return this.ref[i]; }
 		};
 		#else flash
 		return untyped {
 			ref : h,
-			it : keys(),
+			it : __keys__(h)["iterator"](),
 			hasNext : function() { return this.it[__unprotect__("hasNext")](); },
 			next : function() { var i = this.it[__unprotect__("next")](); return this.ref[i]; }
 		};
@@ -179,7 +179,7 @@ class Hash<T> {
 			ref : h,
 			it : keys(),
 			hasNext : function() { return this.it.hasNext(); },
-			next : function() { var i = this.it.next(); return this.ref[i]; }
+			next : function() { var i = this.it.next(); return this.ref["$"+i]; }
 		};
 		#else neko
 		var l = new List<T>();