(term)
| 50 | } |
| 51 | |
| 52 | search (term) { |
| 53 | if (!term) { return this.slice() } |
| 54 | term = term.toLowerCase() |
| 55 | return this.filter(function (user) { |
| 56 | let left |
| 57 | return (user.broadName().toLowerCase().indexOf(term) > -1) || (((left = user.get('email')) != null ? left : '').indexOf(term) > -1) |
| 58 | }) |
| 59 | } |
| 60 | |
| 61 | fetchByIds (ids) { |
| 62 | return this.fetch({ |
no test coverage detected