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

Method afterInsert

app/views/PremiumFeaturesView.js:41–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 afterInsert () {
42 // Automatically open sub modal, unless it will open later via storage sub-modal-continue flag
43 if ((utils.getQueryVariable('pop') != null) && !storage.load('sub-modal-continue')) {
44 this.openSubscriptionModal()
45 }
46 // This super() must follow open sub check above to avoid double sub modal via CocoView.afterInsert()
47 return super.afterInsert()
48 }
49
50 openSubscriptionModal () {
51 return this.openModalView(new SubscribeModal())

Callers

nothing calls this directly

Calls 2

openSubscriptionModalMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected