()
| 10 | } |
| 11 | |
| 12 | getCurrentPath() { |
| 13 | const base = this.getBasePath(); |
| 14 | let path = window.location.pathname; |
| 15 | |
| 16 | if (base && path.indexOf(base) === 0) { |
| 17 | path = path.slice(base.length); |
| 18 | } |
| 19 | |
| 20 | return (path || '/') + window.location.search + window.location.hash; |
| 21 | } |
| 22 | |
| 23 | onchange(cb = noop) { |
| 24 | on('click', e => { |
nothing calls this directly
no test coverage detected