瀏覽代碼

actually make it faster

Dan Korostelev 6 年之前
父節點
當前提交
56b6290cc8
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      std/haxe/DynamicAccess.hx

+ 4 - 2
std/haxe/DynamicAccess.hx

@@ -21,6 +21,8 @@
  */
 package haxe;
 
+import haxe.iterators.DynamicAccessKeyValueIterator;
+
 /**
 	DynamicAccess is an abstract type for working with anonymous structures
 	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.
 	**/
-	public inline function keyValueIterator():KeyValueIterator<String, T> {
-		return new haxe.iterators.DynamicAccessKeyValueIterator(this);
+	public inline function keyValueIterator():DynamicAccessKeyValueIterator<T> {
+		return new DynamicAccessKeyValueIterator(this);
 	}
 }