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

Method initClass

app/views/play/menu/GameMenuModal.js:35–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33module.exports = (GameMenuModal = (function () {
34 GameMenuModal = class GameMenuModal extends ModalView {
35 static initClass () {
36 this.prototype.className = 'modal fade play-modal'
37 if (utils.showOzaria()) {
38 this.prototype.className += ' ozar-view'
39 } else {
40 this.prototype.className += ' coco-view'
41 }
42 this.prototype.template = template
43 this.prototype.id = 'game-menu-modal'
44 this.prototype.instant = true
45
46 this.prototype.events = {
47 'click .done-button': 'hide',
48 'click #close-modal': 'hide',
49 'change input.select': 'onSelectionChanged',
50 'shown.bs.tab #game-menu-nav a': 'onTabShown',
51 'click #change-hero-tab' () { return this.trigger('change-hero') },
52 'click #change-language-tab' () { return this.trigger('change-hero') },
53 'click .auth-tab': 'onClickSignupButton',
54 'click [data-toggle="coco-modal"][data-target="core/CreateAccountModal"]': 'openCreateAccountModal',
55 'click .hints-button': 'onClickHintsButton',
56 'click .course-videos-button': 'onClickCourseVideosButton',
57 }
58 }
59
60 constructor (options) {
61 let left, left1

Callers 1

GameMenuModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected