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

Method initClass

app/views/play/level/modal/ProgressView.js:16–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14module.exports = (ProgressView = (function () {
15 ProgressView = class ProgressView extends CocoView {
16 static initClass () {
17 // TODO: Clean up what was moved to CourseVictoryComponent
18
19 this.prototype.id = 'progress-view'
20 this.prototype.className = 'modal-content'
21 this.prototype.template = require('app/templates/play/level/modal/progress-view')
22
23 this.prototype.events = {
24 'click #done-btn': 'onClickDoneButton',
25 'click #next-level-btn': 'onClickNextLevelButton',
26 'click #start-challenge-btn': 'onClickStartChallengeButton',
27 'click #map-btn': 'onClickMapButton',
28 'click #ladder-btn': 'onClickLadderButton',
29 'click #publish-btn': 'onClickPublishButton',
30 'click #share-level-btn': 'onClickShareLevelButton'
31 }
32 }
33
34 initialize (options) {
35 this.level = options.level

Callers 1

ProgressView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected