mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 09:20:03 +02:00
going ot bed
This commit is contained in:
parent
ab5a752691
commit
e0bdf54d96
4 changed files with 14 additions and 3 deletions
|
@ -133,7 +133,8 @@ LevelArbiter.prototype.getLevel = function(id) {
|
|||
|
||||
LevelArbiter.prototype.getNextLevel = function(id) {
|
||||
if (!this.levelMap[id]) {
|
||||
throw new Error('that level doesnt exist!');
|
||||
console.warn('that level doesnt exist!!!');
|
||||
return null;
|
||||
}
|
||||
|
||||
// meh, this method could be better. It's a tradeoff between
|
||||
|
|
|
@ -332,6 +332,7 @@ var Level = Sandbox.extend({
|
|||
var numCommands = this.gitCommandsIssued.length;
|
||||
var best = this.getNumSolutionCommands();
|
||||
|
||||
Constants.GLOBAL.isAnimating = true;
|
||||
var skipFinishDialog = this.testOption('noFinishDialog');
|
||||
var finishAnimationChain = this.mainVis.gitVisuals.finishAnimation();
|
||||
if (!skipFinishDialog) {
|
||||
|
@ -362,6 +363,7 @@ var Level = Sandbox.extend({
|
|||
// nothing to do, we will just close
|
||||
})
|
||||
.done(function() {
|
||||
Constants.GLOBAL.isAnimating = false;
|
||||
defer.resolve();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue