()
| 83 | } |
| 84 | |
| 85 | afterInsert () { |
| 86 | super.afterInsert() |
| 87 | // scroll to the current hash, once everything in the browser is set up |
| 88 | const f = () => { |
| 89 | if (this.destroyed) { return } |
| 90 | const link = $(document.location.hash) |
| 91 | if (link.length) { |
| 92 | return this.scrollToLink(document.location.hash, 0) |
| 93 | } |
| 94 | } |
| 95 | return _.delay(f, 100) |
| 96 | } |
| 97 | |
| 98 | onClickFixedNavLink (event) { |
| 99 | event.preventDefault() // prevent default page scroll |
nothing calls this directly
no outgoing calls
no test coverage detected