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

Method afterRender

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

Source from the content-addressed store, hash-verified

128 }
129
130 afterRender () {
131 super.afterRender()
132 // TODO: does this work?
133 this.playSound('game-menu-open')
134 if (this.basicProduct && this.subModalContinue) {
135 if (this.subModalContinue === 'monthly') {
136 this.subModalContinue = null
137 return this.onClickPurchaseButton()
138 } else if (this.subModalContinue === 'lifetime') {
139 this.subModalContinue = null
140 // Only automatically open lifetime payment dialog for Stripe, not PayPal
141 if (!this.basicProduct.isRegionalSubscription()) {
142 return this.onClickStripeLifetimeButton()
143 }
144 }
145 }
146 }
147
148 stripeOptions (options) {
149 return _.assign({

Callers

nothing calls this directly

Calls 3

onClickPurchaseButtonMethod · 0.95

Tested by

no test coverage detected