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

Method afterInsert

app/views/HomeView.js:379–398  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377 }
378
379 afterInsert () {
380 super.afterInsert()
381
382 const juniorModalContaniner = document.getElementById('junior-modal')
383 this.juniorModal = new ModalJunior({ el: juniorModalContaniner, store })
384
385 // scroll to the current hash, once everything in the browser is set up
386 const f = () => {
387 if (this.destroyed) { return }
388 try {
389 const link = $(document.location.hash)
390 if (link.length) {
391 return this.scrollToLink(document.location.hash, 0)
392 }
393 } catch (e) {
394 return console.warn(e) // Possibly a hash that would not match a valid element
395 }
396 }
397 return _.delay(f, 100)
398 }
399
400 logoutAccount () {
401 Backbone.Mediator.publish('auth:logging-out', {})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected