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

Method initClass

app/views/play/modal/PlayItemsModal.js:63–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61module.exports = (PlayItemsModal = (function () {
62 PlayItemsModal = class PlayItemsModal extends ModalView {
63 static initClass () {
64 this.prototype.className = 'modal fade play-modal'
65 this.prototype.template = template
66 this.prototype.id = 'play-items-modal'
67
68 this.prototype.events = {
69 'click .item': 'onItemClicked',
70 'shown.bs.tab': 'onTabClicked',
71 'click .unlock-button': 'onUnlockButtonClicked',
72 'click .subscribe-button': 'onSubscribeButtonClicked',
73 'click .start-subscription-button': 'onSubscribeButtonClicked',
74 'click .buy-gems-prompt-button': 'onBuyGemsPromptButtonClicked',
75 'click #close-modal': 'hide',
76 click: 'onClickedSomewhere',
77 'update .tab-pane .nano': 'showVisibleItemImages',
78 'click #hero-type-select label': 'onClickHeroTypeSelect'
79 }
80 }
81
82 constructor (options) {
83 super(options)

Callers 1

PlayItemsModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected