From 2b8206cfc1eb752869704bf6361d2f719650fe99 Mon Sep 17 00:00:00 2001 From: Dav Date: Tue, 17 Feb 2015 10:53:01 +0100 Subject: [PATCH] Update filter.js Regarding the issue #10991 and the following discussion #10992 Solve issue with null property value when using objects with filter. --- src/ng/filter/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 0ec98fc27099..4f45e1aeaf5a 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -187,7 +187,7 @@ function createPredicateFn(expression, comparator, matchAgainstAnyProp) { } function deepCompare(actual, expected, comparator, matchAgainstAnyProp, dontMatchWholeObject) { - var actualType = typeof actual; + var actualType = (actual !== null) ? typeof actual : 'null'; var expectedType = typeof expected; if ((expectedType === 'string') && (expected.charAt(0) === '!')) {