mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 04:41:42 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
098bc3046b
1 changed files with 4 additions and 4 deletions
|
@ -369,10 +369,10 @@ module.exports = class CampaignView extends RootView
|
||||||
level = new Level().setURL levelURL
|
level = new Level().setURL levelURL
|
||||||
level = @supermodel.loadModel(level, 'level', null, 0).model
|
level = @supermodel.loadModel(level, 'level', null, 0).model
|
||||||
sessionURL = "/db/level/#{levelSlug}/session"
|
sessionURL = "/db/level/#{levelSlug}/session"
|
||||||
@preloadedSession = new LevelSession().setURL sessionURL
|
#@preloadedSession = new LevelSession().setURL sessionURL
|
||||||
@preloadedSession.levelSlug = levelSlug
|
#@preloadedSession.levelSlug = levelSlug
|
||||||
@preloadedSession.fetch()
|
#@preloadedSession.fetch()
|
||||||
@listenToOnce @preloadedSession, 'sync', @onSessionPreloaded
|
#@listenToOnce @preloadedSession, 'sync', @onSessionPreloaded
|
||||||
|
|
||||||
onSessionPreloaded: (session) ->
|
onSessionPreloaded: (session) ->
|
||||||
levelElement = @$el.find('.level-info-container:visible')
|
levelElement = @$el.find('.level-info-container:visible')
|
||||||
|
|
Loading…
Reference in a new issue