Browse Source

actually make it faster

Dan Korostelev 6 years ago
parent
commit
56b6290cc8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      std/haxe/DynamicAccess.hx

+ 4 - 2
std/haxe/DynamicAccess.hx

@@ -21,6 +21,8 @@
  */
  */
 package haxe;
 package haxe;
 
 
+import haxe.iterators.DynamicAccessKeyValueIterator;
+
 /**
 /**
 	DynamicAccess is an abstract type for working with anonymous structures
 	DynamicAccess is an abstract type for working with anonymous structures
 	that are intended to hold collections of objects by the string key.
 	that are intended to hold collections of objects by the string key.
@@ -102,7 +104,7 @@ abstract DynamicAccess<T>(Dynamic<T>) from Dynamic<T> to Dynamic<T> {
 
 
 		The order of values is undefined.
 		The order of values is undefined.
 	**/
 	**/
-	public inline function keyValueIterator():KeyValueIterator<String, T> {
-		return new haxe.iterators.DynamicAccessKeyValueIterator(this);
+	public inline function keyValueIterator():DynamicAccessKeyValueIterator<T> {
+		return new DynamicAccessKeyValueIterator(this);
 	}
 	}
 }
 }