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

Method getRenderData

app/views/play/menu/ItemView.js:25–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 getRenderData () {
26 const c = super.getRenderData()
27 c.item = this.item
28 c.includes = this.includes
29 if (this.includes.props || this.includes.stats) {
30 const { props, stats } = this.item.getFrontFacingStats()
31 c.props = props
32 c.stats = stats
33 }
34 return c
35 }
36
37 afterRender () {
38 return this.$el.data('item-id', this.item.id)

Callers

nothing calls this directly

Calls 1

getFrontFacingStatsMethod · 0.80

Tested by

no test coverage detected