(term)
| 114 | } |
| 115 | |
| 116 | updateHash (term) { |
| 117 | const newPath = document.location.pathname + (term ? '#' + term : '') |
| 118 | const currentPath = document.location.pathname + document.location.hash |
| 119 | if (newPath !== currentPath) { return application.router.navigate(newPath) } |
| 120 | } |
| 121 | |
| 122 | sameSearch (term) { |
| 123 | if (!this.collection) { return false } |