diff options
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/filter/filter.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index eabe84a7..2bb0d174 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -136,6 +136,15 @@ function filterFilter() { }; } else { comparator = function(obj, text) { + if (obj && text && typeof obj === 'object' && typeof text === 'object') { + for (var objKey in obj) { + if (objKey.charAt(0) !== '$' && hasOwnProperty.call(obj, objKey) && + comparator(obj[objKey], text[objKey])) { + return true; + } + } + return false; + } text = (''+text).toLowerCase(); return (''+obj).toLowerCase().indexOf(text) > -1; }; |
