Browse Source

fixed TypedDictionary.exists

Nicolas Cannasse 15 years ago
parent
commit
811ebcbbc4
2 changed files with 2 additions and 1 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 1 1
      std/flash9/utils/TypedDictionary.hx

+ 1 - 0
doc/CHANGES.txt

@@ -5,6 +5,7 @@
 	neko : fixed neko.Web.getParamsString() returning "null" instead of ""
 	neko : fixed neko.Web.getParamsString() returning "null" instead of ""
 	flash9 : fixed issue with @:bind
 	flash9 : fixed issue with @:bind
 	flash9 : added some missing errors
 	flash9 : added some missing errors
+	flash9 : fixed TypedDictionary.exists
 
 
 2010-08-14: 2.06
 2010-08-14: 2.06
 	neko : change serializer to be able to handle instances of basic classes from other modules
 	neko : change serializer to be able to handle instances of basic classes from other modules

+ 1 - 1
std/flash9/utils/TypedDictionary.hx

@@ -38,7 +38,7 @@ class TypedDictionary<K,T> extends Dictionary {
 	}
 	}
 
 
 	public inline function exists( k : K ) {
 	public inline function exists( k : K ) {
-		return this[cast k] != null;
+		return untyped this[k] != null;
 	}
 	}
 
 
 	public inline function delete( k : K ) {
 	public inline function delete( k : K ) {