Explorar el Código

fixed "null" == false

Nicolas Cannasse hace 14 años
padre
commit
78dca61eca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/haxe/web/Dispatch.hx

+ 1 - 1
std/haxe/web/Dispatch.hx

@@ -160,7 +160,7 @@ class Dispatch {
 			if( v == null ) throw DEMissing;
 			if( v == null ) throw DEMissing;
 			return v;
 			return v;
 		case MRBool:
 		case MRBool:
-			return v != null && v != "0" && v != "false";
+			return v != null && v != "0" && v != "false" && v != "null";
 		case MRDispatch:
 		case MRDispatch:
 			if( v != null )
 			if( v != null )
 				parts.unshift(v);
 				parts.unshift(v);