From be83b5420f1d32f384f85545b9a0728c965eddd0 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Sat, 15 Feb 2014 17:36:27 -0800 Subject: [PATCH] Fixed the goals view, which wasn't being properly shown. --- app/views/play/level/goals_view.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/play/level/goals_view.coffee b/app/views/play/level/goals_view.coffee index 44e82d655..e314bee5e 100644 --- a/app/views/play/level/goals_view.coffee +++ b/app/views/play/level/goals_view.coffee @@ -46,11 +46,11 @@ module.exports = class GoalsView extends View li.prepend($('').addClass(stateIconMap[state.status])) list.append(li) goals.push goal - @$el.toggle goals.length > 0 + @$el.removeClass('secret') if goals.length > 0 render: -> super() - @$el.addClass('hide').addClass('expanded') + @$el.addClass('secret').addClass('expanded') onSetLetterbox: (e) -> @$el.toggle not e.on