Updated IS_NULL filter to check for strict null.

The IS_NULL filter evaluates to true only when the
property is null. Updated tests to reflect this
change.
This commit is contained in:
Matt Walker
2012-10-16 08:11:59 +01:00
parent ea5a510d45
commit a65a231da3
2 changed files with 4 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ OpenLayers.Filter.Comparison = OpenLayers.Class(OpenLayers.Filter, {
result = regexp.test(got);
break;
case OpenLayers.Filter.Comparison.IS_NULL:
result = (got === null || got === undefined);
result = (got === null);
break;
}
return result;