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

Method onLoaded

app/views/common/EditView.js:38–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 onLoaded () {
39 super.onLoaded()
40 this.buildTreema()
41 this.listenTo(this.resource, 'change', () => {
42 this.resource.updateI18NCoverage()
43 return this.treema.set('/', this.resource.attributes)
44 })
45
46 if (!this.filePath || !this.redirectPathOnSuccess || !this.resourceName) {
47 console.error('EditView: required field not set', this.filePath, this.redirectPathOnSuccess, this.resourceName)
48 return noty({ text: 'EditView: required field not set', layout: 'center', type: 'error', timeout: 10000 })
49 }
50 }
51
52 buildTreema () {
53 if ((this.treema != null) || (!this.resource.loaded)) { return }

Callers

nothing calls this directly

Calls 4

buildTreemaMethod · 0.95
updateI18NCoverageMethod · 0.45
setMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected