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

Method afterInsert

app/views/HomeCNView.js:196–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 afterInsert () {
197 super.afterInsert()
198 // scroll to the current hash, once everything in the browser is set up
199 const f = () => {
200 if (this.destroyed) { return }
201 const link = $(document.location.hash)
202 if (link.length) {
203 return this.scrollToLink(document.location.hash, 0)
204 }
205 }
206 return _.delay(f, 100)
207 }
208
209 logoutAccount () {
210 Backbone.Mediator.publish('auth:logging-out', {})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected