mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 00:24:28 +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
|
@ -10,6 +10,7 @@ var _isAnimating = false;
|
|||
var _flipTreeY = false;
|
||||
var _numLevelsSolved = 0;
|
||||
var _disableLevelInstructions = false;
|
||||
var _isSolvingLevel = false;
|
||||
|
||||
var GlobalStateStore = Object.assign(
|
||||
{},
|
||||
|
@ -20,6 +21,10 @@ AppConstants.StoreSubscribePrototype,
|
|||
return _isAnimating;
|
||||
},
|
||||
|
||||
getIsSolvingLevel: function() {
|
||||
return _isSolvingLevel;
|
||||
},
|
||||
|
||||
getFlipTreeY: function() {
|
||||
return _flipTreeY;
|
||||
},
|
||||
|
@ -37,6 +42,10 @@ AppConstants.StoreSubscribePrototype,
|
|||
var shouldInform = false;
|
||||
|
||||
switch (action.type) {
|
||||
case ActionTypes.SET_IS_SOLVING_LEVEL:
|
||||
_isSolvingLevel = action.isSolvingLevel;
|
||||
shouldInform = true;
|
||||
break;
|
||||
case ActionTypes.CHANGE_IS_ANIMATING:
|
||||
_isAnimating = action.isAnimating;
|
||||
shouldInform = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue