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

Method afterInsert

app/views/core/ModalView.js:76–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 afterInsert () {
77 super.afterInsert()
78 // This makes sure if you press enter right after opening the players guide,
79 // it doesn't just reopen the modal.
80 $(document.activeElement).blur()
81
82 if (typeof localStorage !== 'undefined' && localStorage !== null ? localStorage.showViewNames : undefined) {
83 const title = this.constructor != null ? this.constructor.name : undefined
84 return setTimeout(function () {
85 if (!this.destroyed) { return $('title').text(title) }
86 }
87 , 500)
88 }
89 }
90
91 trapFocus () {
92 if (!this.trapsFocus) { return }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected