mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-07 21:24:26 +02:00
Resolves #993 -- warn on before unloading
This commit is contained in:
parent
d9fe304038
commit
be58befe52
5 changed files with 26 additions and 2 deletions
|
@ -58,6 +58,7 @@ var Level = Sandbox.extend({
|
|||
this.startOffCommand();
|
||||
|
||||
this.handleOpen(options.deferred);
|
||||
LevelActions.setIsSolvingLevel(true);
|
||||
},
|
||||
|
||||
getIsGoalExpanded: function() {
|
||||
|
@ -65,6 +66,7 @@ var Level = Sandbox.extend({
|
|||
},
|
||||
|
||||
handleOpen: function(deferred) {
|
||||
LevelActions.setIsSolvingLevel(true);
|
||||
deferred = deferred || Q.defer();
|
||||
|
||||
// if there is a multiview in the beginning, open that
|
||||
|
@ -573,6 +575,7 @@ var Level = Sandbox.extend({
|
|||
delete this.mainVis;
|
||||
delete this.goalVis;
|
||||
delete this.goalCanvasHolder;
|
||||
LevelActions.setIsSolvingLevel(false);
|
||||
},
|
||||
|
||||
getInstantCommands: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue