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

Method constructor

app/views/play/menu/GameMenuModal.js:60–71  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

58 }
59
60 constructor (options) {
61 let left, left1
62 super(options)
63 this.level = this.options.level
64 this.classroomAceConfig = this.options.classroomAceConfig
65 this.options.levelID = this.options.level?.get('slug')
66 if (!this.options.inOzariaMap) {
67 this.options.codeLanguage = this.options.session?.get('codeLanguage')
68 this.options.startingSessionHeroConfig = $.extend({}, true, ((left = this.options.session.get('heroConfig')) != null ? left : {}))
69 Backbone.Mediator.publish('music-player:enter-menu', { terrain: (left1 = this.options.level.get('terrain', true)) != null ? left1 : 'Dungeon' })
70 }
71 }
72
73 getRenderData (context) {
74 if (context == null) { context = {} }

Callers

nothing calls this directly

Calls 2

publishMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected