Browse Source

fixed "null" == false

Nicolas Cannasse 14 years ago
parent
commit
78dca61eca
1 changed files with 1 additions and 1 deletions
  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);