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

Method onLoaded

app/views/editor/poll/PollEditView.js:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 onLoaded () {
65 super.onLoaded()
66
67 if (this.poll.get('answers') === undefined) {
68 this.poll.set('hidden', true)
69 }
70
71 this.buildTreema()
72 return this.listenTo(this.poll, 'change', () => {
73 this.poll.updateI18NCoverage()
74 return this.treema.set('/', this.poll.attributes)
75 })
76 }
77
78 buildTreema () {
79 if ((this.treema != null) || (!this.poll.loaded) || (!me.isAdmin())) { return }

Callers

nothing calls this directly

Calls 4

buildTreemaMethod · 0.95
getMethod · 0.45
setMethod · 0.45
updateI18NCoverageMethod · 0.45

Tested by

no test coverage detected