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

Method onClickBuy

app/views/PremiumFeaturesView.js:54–58  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

52 }
53
54 onClickBuy (e) {
55 this.openSubscriptionModal()
56 const buttonLocation = $(e.currentTarget).data('button-location')
57 return (window.tracker != null ? window.tracker.trackEvent('Show subscription modal', { category: 'Subscription', label: `get premium view ${buttonLocation}` }) : undefined)
58 }
59
60 onSubscribed () {
61 return this.render()

Callers

nothing calls this directly

Calls 3

openSubscriptionModalMethod · 0.95
dataMethod · 0.80
trackEventMethod · 0.45

Tested by

no test coverage detected