MCPcopy Index your code
hub / github.com/codecombat/codecombat / getRenderData

Method getRenderData

app/views/editor/level/LevelEditView.js:211–220  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

209 }
210
211 getRenderData (context) {
212 let left
213 if (context == null) { context = {} }
214 context = super.getRenderData(context)
215 context.level = this.level
216 context.authorized = me.isAdmin() || this.level.hasWriteAccess(me)
217 context.anonymous = me.get('anonymous')
218 context.recentlyPlayedOpponents = (left = __guard__(storage.load('recently-played-matches'), x => x[this.levelID])) != null ? left : []
219 return context
220 }
221
222 afterRender () {
223 super.afterRender()

Callers

nothing calls this directly

Calls 5

isAdminMethod · 0.80
hasWriteAccessMethod · 0.80
__guard__Function · 0.70
getMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected