mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 08:04:27 +02:00
yay ok working
This commit is contained in:
parent
ebdf188c1d
commit
eb33897a22
6 changed files with 166 additions and 17 deletions
|
@ -331,11 +331,22 @@ var Level = Sandbox.extend({
|
|||
return instants;
|
||||
},
|
||||
|
||||
exitLevel: function(command, deferred) {
|
||||
this.die();
|
||||
setTimeout(function() {
|
||||
command.finishWith(deferred);
|
||||
}, this.getAnimationTime());
|
||||
|
||||
// we need to fade in the sandbox
|
||||
Main.getEventBaton().trigger('levelExited');
|
||||
},
|
||||
|
||||
processLevelCommand: function(command, defer) {
|
||||
var methodMap = {
|
||||
'show goal': this.showGoal,
|
||||
'hide goal': this.hideGoal,
|
||||
'show solution': this.showSolution
|
||||
'show solution': this.showSolution,
|
||||
'exit level': this.exitLevel
|
||||
};
|
||||
var method = methodMap[command.get('method')];
|
||||
if (!method) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue