MCPcopy Create free account
hub / github.com/codecombat/codecombat / afterInsert

Method afterInsert

app/views/AboutView.js:85–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected