mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-03 12:27:19 -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 = @supermodel.loadModel(level, 'level', null, 0).model
|
||||
sessionURL = "/db/level/#{levelSlug}/session"
|
||||
@preloadedSession = new LevelSession().setURL sessionURL
|
||||
@preloadedSession.levelSlug = levelSlug
|
||||
@preloadedSession.fetch()
|
||||
@listenToOnce @preloadedSession, 'sync', @onSessionPreloaded
|
||||
#@preloadedSession = new LevelSession().setURL sessionURL
|
||||
#@preloadedSession.levelSlug = levelSlug
|
||||
#@preloadedSession.fetch()
|
||||
#@listenToOnce @preloadedSession, 'sync', @onSessionPreloaded
|
||||
|
||||
onSessionPreloaded: (session) ->
|
||||
levelElement = @$el.find('.level-info-container:visible')
|
||||
|
|
Loading…
Reference in a new issue