From 860868c28533bf4cbf401418eb06d08c8995f1a2 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 5 Feb 2015 16:14:32 -0800 Subject: [PATCH] Stopped preloading sessions for now, since it's buggy. --- app/views/play/CampaignView.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index ad9dac8aa..88a3d92fa 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -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')