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

Method afterRender

app/views/common/SearchView.js:83–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 afterRender () {
84 super.afterRender()
85 const hash = document.location.hash.slice(1)
86 const searchInput = this.$el.find('#search')
87 if (hash != null) { searchInput.val(hash) }
88 if (this.collection != null) {
89 delete this.collection.term
90 }
91 searchInput.trigger('change')
92 return searchInput.focus()
93 }
94
95 runSearch () {
96 if (this.destroyed) { return }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected