diff options
| author | Igor Minar | 2014-01-27 17:35:27 -0800 | 
|---|---|---|
| committer | Igor Minar | 2014-01-31 03:16:46 -0800 | 
| commit | 339a1658cd9bfa5e322a01c45aa0a1df67e3a842 (patch) | |
| tree | 28d6bd6dc0005fad0c6f3e3c28721dbc7529091e /src/ng | |
| parent | 29432ffe3795477d8f6174cee1976683ded89d67 (diff) | |
| download | angular.js-339a1658cd9bfa5e322a01c45aa0a1df67e3a842.tar.bz2 | |
fix(filterFilter): don't interpret dots in predicate object fields as paths
Closes #6005
Closes #6009
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/filter/filter.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 7720bb13..eabe84a7 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -188,7 +188,7 @@ function filterFilter() {            (function(path) {              if (typeof expression[path] == 'undefined') return;              predicates.push(function(value) { -              return search(path == '$' ? value : getter(value, path), expression[path]); +              return search(path == '$' ? value : (value && value[path]), expression[path]);              });            })(key);          }  | 
