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

Method initClass

app/views/user/CertificatesView.js:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27module.exports = (CertificatesView = (function () {
28 CertificatesView = class CertificatesView extends RootView {
29 static initClass () {
30 this.prototype.id = 'certificates-view'
31 this.prototype.template = require('app/templates/user/certificates-view')
32
33 this.prototype.events = {
34 'click .print-btn': 'onClickPrintButton',
35 'click .toggle-btn': 'onClickToggleButton',
36 }
37 }
38
39 getTitle () {
40 if (this.user?.broadName() === 'Anonymous' || !this.user) { return 'Certificate' }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected