mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed disabling of playback accidentally when disabling anything.
This commit is contained in:
parent
8c953fffed
commit
55196bc589
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ module.exports = class LevelPlaybackView extends CocoView
|
||||||
@lastLoadedFrameCount = loadedFrameCount
|
@lastLoadedFrameCount = loadedFrameCount
|
||||||
|
|
||||||
onDisableControls: (e) ->
|
onDisableControls: (e) ->
|
||||||
if not e.controls or 'playback' in e.controls
|
if not e.controls or ('playback' in e.controls)
|
||||||
@disabled = true
|
@disabled = true
|
||||||
$('button', @$el).addClass('disabled')
|
$('button', @$el).addClass('disabled')
|
||||||
try
|
try
|
||||||
|
@ -146,7 +146,7 @@ module.exports = class LevelPlaybackView extends CocoView
|
||||||
|
|
||||||
onEnableControls: (e) ->
|
onEnableControls: (e) ->
|
||||||
return if @realTime
|
return if @realTime
|
||||||
if not e.controls or 'playback' in e.controls
|
if not e.controls or ('playback' in e.controls)
|
||||||
@disabled = false
|
@disabled = false
|
||||||
$('button', @$el).removeClass('disabled')
|
$('button', @$el).removeClass('disabled')
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue