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

Method onClickHeroOption

app/views/core/HeroSelectView.js:81–85  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

79 // @listenTo @heroes, 'all', -> @debouncedRender()
80
81 onClickHeroOption (e) {
82 const heroOriginal = $(e.currentTarget).data('hero-original')
83 this.state.set({ selectedHeroOriginal: heroOriginal })
84 return this.saveHeroSelection(heroOriginal)
85 }
86
87 getPortraitURL (hero) {
88 return ThangTypeLib.getPortraitURL(hero)

Callers

nothing calls this directly

Calls 3

saveHeroSelectionMethod · 0.95
dataMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected