From 55196bc5894e316681665aa14c9cbb825fe2e840 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Fri, 14 Nov 2014 18:25:01 -0800 Subject: [PATCH] Fixed disabling of playback accidentally when disabling anything. --- app/views/play/level/LevelPlaybackView.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/play/level/LevelPlaybackView.coffee b/app/views/play/level/LevelPlaybackView.coffee index 0c0123dc6..247db17be 100644 --- a/app/views/play/level/LevelPlaybackView.coffee +++ b/app/views/play/level/LevelPlaybackView.coffee @@ -133,7 +133,7 @@ module.exports = class LevelPlaybackView extends CocoView @lastLoadedFrameCount = loadedFrameCount onDisableControls: (e) -> - if not e.controls or 'playback' in e.controls + if not e.controls or ('playback' in e.controls) @disabled = true $('button', @$el).addClass('disabled') try @@ -146,7 +146,7 @@ module.exports = class LevelPlaybackView extends CocoView onEnableControls: (e) -> return if @realTime - if not e.controls or 'playback' in e.controls + if not e.controls or ('playback' in e.controls) @disabled = false $('button', @$el).removeClass('disabled') try