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

Method afterRender

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

Source from the content-addressed store, hash-verified

62 }
63
64 afterRender () {
65 super.afterRender()
66 if (this.modalWidthPercent) {
67 this.$el.find('.modal-dialog').css({ width: `${this.modalWidthPercent}%` })
68 }
69 this.$el.on('hide.bs.modal', () => {
70 if (!this.hidden) { this.onHidden() }
71 this.hidden = true
72 })
73 if (this.plain) { return this.$el.find('.background-wrapper').addClass('plain') }
74 }
75
76 afterInsert () {
77 super.afterInsert()

Callers

nothing calls this directly

Calls 1

onHiddenMethod · 0.95

Tested by

no test coverage detected