Nicolas Cannasse 19 éve
szülő
commit
a381bae0d2
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      std/Hash.hx

+ 3 - 3
std/Hash.hx

@@ -32,9 +32,9 @@ class Hash<T> {
 		h = untyped __dollar__hnew(0);
 		#else js
 		h = Reflect.empty();
-		untyped {
-			if( h.__proto__ != null )
-				delete(h.__proto__);
+		untyped if( h.__proto__ != null ) {
+			h.__proto__ = null;
+			delete(h.__proto__);
 		}
 		#else error
 		#end