(results)
| 80 | |
| 81 | _.each(this.handlers, function(handler, name) { |
| 82 | var done = function(results) { |
| 83 | i = i + 1; |
| 84 | if (results) { |
| 85 | d.notify({ |
| 86 | 'category': { |
| 87 | 'title': handler.title |
| 88 | }, |
| 89 | 'results': _.chain(results) |
| 90 | .map(_.partial(that.normResult, handler)) |
| 91 | .value(), |
| 92 | 'query': query |
| 93 | }); |
| 94 | } |
| 95 | if (i == n) { |
| 96 | if (errors.length == 0) { |
| 97 | d.resolve(n); |
| 98 | } else { |
| 99 | d.reject(errors); |
| 100 | } |
| 101 | } |
| 102 | }; |
| 103 | |
| 104 | if (!user.get("settings.search."+name, true)) return done(); |
| 105 |
no outgoing calls
no test coverage detected