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

Method constructor

app/views/account/SubscriptionView.js:71–81  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

69 }
70
71 constructor (options) {
72 super(options)
73 const prepaidCode = utils.getQueryVariable('_ppc')
74 this.personalSub = new PersonalSub(this.supermodel, prepaidCode)
75 this.recipientSubs = new RecipientSubs(this.supermodel)
76 this.emailValidator = new EmailValidator(this.superModel)
77 this.personalSub.update(() => (typeof this.render === 'function' ? this.render() : undefined))
78 this.recipientSubs.update(() => (typeof this.render === 'function' ? this.render() : undefined))
79 this.products = new Products()
80 this.supermodel.loadCollection(this.products)
81 }
82
83 getMeta () {
84 return { title: $.i18n.t('account.subscription_title') }

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected