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

Method constructor

app/views/HomeCNView.js:51–69  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

49 }
50
51 constructor (options) {
52 super(options)
53
54 this.courses = new Courses()
55 this.supermodel.trackRequest(this.courses.fetchReleased())
56
57 window.localStorage.setItem('lastUpdatedCocoStarPage', +new Date('2021-3-30 18:00:00'))
58 window?.localStorage?.setItem('lastUpdatedEventPage', +new Date('2021-3-30 18:00:00'))
59
60 this.homeCN = {}
61 this.mandate = this.supermodel.loadModel(new Mandate()).model
62 this.listenTo(this.mandate, 'sync', this.getMandate)
63 // @getBanner()
64 if (me.isTeacher()) {
65 this.trialRequests = new TrialRequests()
66 this.trialRequests.fetchOwn()
67 this.supermodel.loadCollection(this.trialRequests)
68 }
69 }
70
71 getMeta () {
72 return {

Callers

nothing calls this directly

Calls 4

fetchReleasedMethod · 0.80
setItemMethod · 0.80
isTeacherMethod · 0.80
fetchOwnMethod · 0.80

Tested by

no test coverage detected