Dan Korostelev 9 years ago
parent
commit
267ab93843
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/js/_std/haxe/ds/ObjectMap.hx

+ 1 - 1
std/js/_std/haxe/ds/ObjectMap.hx

@@ -43,7 +43,7 @@ class ObjectMap<K:{ }, V> implements haxe.Constraints.IMap<K,V> {
 	}
 	}
 
 
 	public function set(key:K, value:V):Void untyped {
 	public function set(key:K, value:V):Void untyped {
-		var id : Int = untyped key.__id__ || assignId(key);
+		var id : Int = getId(key) || assignId(key);
 		h[id] = value;
 		h[id] = value;
 		h.__keys__[id] = key;
 		h.__keys__[id] = key;
 	}
 	}