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

Method initialize

app/views/artisans/LevelGuidesView.js:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 initialize () {
53 this.campaigns = new Campaigns()
54
55 this.listenTo(this.campaigns, 'sync', this.onCampaignsLoaded)
56 return this.supermodel.trackRequest(this.campaigns.fetch({
57 data: {
58 project: 'name,slug,levels',
59 },
60 }))
61 }
62
63 onCampaignsLoaded (campCollection) {
64 return (() => {

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected