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

Method constructor

app/views/core/ModalView.js:43–50  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

41 }
42
43 constructor (options) {
44 super(...arguments)
45 if ((options != null ? options.instant : undefined) || this.instant) { this.className = this.className.replace(' fade', '') }
46 if ((options != null ? options.closeButton : undefined) != null) { this.closeButton = options.closeButton }
47 if (options != null ? options.modalWidthPercent : undefined) { this.modalWidthPercent = options.modalWidthPercent }
48 if (this.options == null) { this.options = {} }
49 if ((options != null ? options.trapsFocus : undefined) != null) { this.trapsFocus = options.trapsFocus }
50 }
51
52 getRenderData (c) {
53 c = super.getRenderData(c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected