Merge pull request #395 from tips48/master

Block Ctrl-S while playing
This commit is contained in:
Nick Winter 2014-02-20 15:29:16 -08:00
commit edcb7f45b6

View file

@ -64,6 +64,9 @@ module.exports = class PlayLevelView extends View
events:
'click #level-done-button': 'onDonePressed'
shortcuts:
'ctrl+s': 'onCtrlS'
constructor: (options, @levelID) ->
console.profile?() if PROFILE_ME
super options
@ -189,6 +192,9 @@ module.exports = class PlayLevelView extends View
# callbacks
onCtrlS: (e) ->
e.preventDefault()
onLevelReloadFromData: (e) ->
isReload = Boolean @world
@setLevel e.level, e.supermodel