Explorar o código

fixed "null" == false

Nicolas Cannasse %!s(int64=14) %!d(string=hai) anos
pai
achega
78dca61eca
Modificáronse 1 ficheiros con 1 adicións e 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;
 			return v;
 		case MRBool:
-			return v != null && v != "0" && v != "false";
+			return v != null && v != "0" && v != "false" && v != "null";
 		case MRDispatch:
 			if( v != null )
 				parts.unshift(v);