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

Method getRenderData

app/views/play/modal/PlayItemsModal.js:148–156  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

146 }
147
148 getRenderData (context) {
149 if (context == null) { context = {} }
150 context = super.getRenderData(context)
151 context.itemCategoryCollections = this.itemCategoryCollections
152 context.itemCategories = _.keys(this.itemCategoryCollections)
153 context.itemCategoryNames = (Array.from(context.itemCategories).map((category) => $.i18n.t(`items.${category}`)))
154 context.gems = me.gems()
155 return context
156 }
157
158 afterRender () {
159 super.afterRender()

Callers

nothing calls this directly

Calls 1

gemsMethod · 0.80

Tested by

no test coverage detected