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

Method initClass

app/views/courses/CoursesView.js:58–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56module.exports = (CoursesView = (function () {
57 CoursesView = class CoursesView extends RootView {
58 static initClass () {
59 this.prototype.id = 'courses-view'
60 this.prototype.template = template
61
62 this.prototype.events = {
63 'click #log-in-btn': 'onClickLogInButton',
64 'click #start-new-game-btn': 'openSignUpModal',
65 'click .current-hero': 'onClickChangeHeroButton',
66 'click #join-class-btn': 'onClickJoinClassButton',
67 'submit #join-class-form': 'onSubmitJoinClassForm',
68 'click .play-btn': 'onClickPlay',
69 'click .play-next-level-btn': 'onClickPlayNextLevel',
70 'click .view-class-btn': 'onClickViewClass',
71 'click .view-levels-btn': 'onClickViewLevels',
72 'click .view-project-gallery-link': 'onClickViewProjectGalleryLink',
73 'click .view-challenges-link': 'onClickViewChallengesLink',
74 'click .view-videos-link': 'onClickViewVideosLink',
75 'click .view-announcement-link': 'onClickAnnouncementLink',
76 'click .more-tournaments': 'onClickMoreTournaments',
77 'click .more-ai-league-tiles': 'onClickMoreAILeagueTiles',
78 }
79
80 this.prototype.subscriptions =
81 { 'websocket:user-online': 'handleUserOnline' }
82 }
83
84 getMeta () {
85 return {

Callers 1

CoursesView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected