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

Method initClass

app/views/core/SubscribeModal.js:28–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26module.exports = (SubscribeModal = (function () {
27 SubscribeModal = class SubscribeModal extends ModalView {
28 static initClass () {
29 this.prototype.id = 'subscribe-modal'
30 this.prototype.template = template
31 this.prototype.plain = true
32 this.prototype.closesOnClickOutside = false
33 this.prototype.planID = 'basic'
34 this.prototype.i18nData = utils.premiumContent
35
36 this.prototype.events = {
37 'click #close-modal': 'hide',
38 'click .purchase-button': 'onClickPurchaseButton',
39 'click .stripe-lifetime-button': 'onClickStripeLifetimeButton',
40 'click .stripe-annual-button': 'onClickAnnualPurchaseButton',
41 'click .back-to-products': 'onClickBackToProducts'
42 }
43 }
44
45 constructor (options) {
46 // if document.location.host is 'br.codecombat.com'

Callers 1

SubscribeModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected