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

Method constructor

app/views/editor/level/treema_nodes.js:292–296  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

290 }
291
292 constructor (...args) {
293 super(...Array.from(args || []))
294 const data = this.getData()
295 this.thangType = _.find(this.settings.supermodel.getModels(ThangType), m => { if (data) { return m.get('original') === data } })
296 }
297
298 buildValueForDisplay (valEl) {
299 return this.buildValueForDisplaySimply(valEl, (this.thangType != null ? this.thangType.get('name') : undefined) || 'None')

Callers

nothing calls this directly

Calls 2

getThangTypesMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected