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

Method constructor

app/views/courses/HeroSelectModal.js:26–32  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

24 }
25
26 constructor (options) {
27 super(options)
28 this.listenTo(this.insertSubView(new HeroSelectView({ showCurrentHero: true, product: (options || {}).product })),
29 'hero-select:success', function (hero) {
30 if (!this.destroyed) { return this.trigger('hero-select:success', hero) }
31 })
32 }
33
34 onClickSelectHeroButton () {
35 return this.hide()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected