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

Method onClickBack

app/views/play/CampaignView.js:2223–2236  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2221 }
2222
2223 onClickBack (e) {
2224 let route = '/play'
2225 let viewArgs = [{ supermodel: this.supermodel }]
2226 const parentSlug = this.campaign?.get('parentCampaignSlug')
2227 if (parentSlug) {
2228 route = `/play/${parentSlug}`
2229 viewArgs = [{ supermodel: this.supermodel }, parentSlug]
2230 }
2231 Backbone.Mediator.publish('router:navigate', {
2232 route,
2233 viewClass: CampaignView,
2234 viewArgs,
2235 })
2236 }
2237
2238 onClickClearStorage (e) {
2239 localStorage.clear()

Callers

nothing calls this directly

Calls 2

publishMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected