(opts, vm)
| 290 | } |
| 291 | |
| 292 | function init(opts, vm) { |
| 293 | var keywords = vm.router.parse().query.s; |
| 294 | |
| 295 | updateOptions(opts); |
| 296 | style(); |
| 297 | tpl(keywords); |
| 298 | bindEvents(); |
| 299 | keywords && setTimeout(function (_) { return doSearch(keywords); }, 500); |
| 300 | } |
| 301 | |
| 302 | function update(opts, vm) { |
| 303 | updateOptions(opts); |
no test coverage detected