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

Method getRenderData

app/views/editor/modal/VersionsModal.js:92–103  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

90 }
91
92 getRenderData (context) {
93 if (context == null) { context = {} }
94 context = super.getRenderData(context)
95 context.page = this.page
96 if (this.versions) {
97 context.dataList = (Array.from(this.versions.models).map((m) => m.attributes))
98 for (const version of Array.from(context.dataList)) {
99 version.creator = nameLoader.getName(version.creator)
100 }
101 }
102 return context
103 }
104 }
105 VersionsModal.initClass()
106 return VersionsModal

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected