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

Method onLoaded

app/views/editor/course/CourseEditView.js:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 onLoaded () {
47 super.onLoaded()
48 this.concepts = new Concepts([])
49
50 this.listenTo(this.concepts, 'sync', () => {
51 schemas.concept.enum = _.map(this.concepts.models, c => c.get('key'))
52 return this.onConceptsLoaded()
53 })
54
55 return this.concepts.fetch({ data: { skip: 0, limit: 1000 } })
56 }
57
58 onConceptsLoaded () {
59 this.buildTreema()

Callers

nothing calls this directly

Calls 3

onConceptsLoadedMethod · 0.95
getMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected