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

Method getRenderData

app/views/i18n/I18NEditModelView.js:73–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 getRenderData () {
74 const c = super.getRenderData()
75
76 c.model = this.model
77 c.selectedLanguage = this.selectedLanguage
78
79 this.translationList = []
80 if (this.supermodel.finished()) { this.buildTranslationList() } else { [] }
81 for (let index = 0; index < this.translationList.length; index++) { const result = this.translationList[index]; result.index = index }
82 c.translationList = this.translationList
83
84 return c
85 }
86
87 afterRender () {
88 super.afterRender()

Callers

nothing calls this directly

Calls 1

buildTranslationListMethod · 0.95

Tested by

no test coverage detected