Nicolas Cannasse vor 17 Jahren
Ursprung
Commit
5cd2d94959
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      std/Hash.hx

+ 3 - 3
std/Hash.hx

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