mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-07 21:24:26 +02:00
flip tree Y
This commit is contained in:
parent
e03bdc619f
commit
c7cede468b
4 changed files with 23 additions and 0 deletions
|
@ -9,6 +9,7 @@ var assign = require('object-assign');
|
|||
var ActionTypes = AppConstants.ActionTypes;
|
||||
|
||||
var _isAnimating = false;
|
||||
var _flipTreeY = false;
|
||||
|
||||
var GlobalStateStore = assign(
|
||||
{},
|
||||
|
@ -19,6 +20,10 @@ AppConstants.StoreSubscribePrototype,
|
|||
return _isAnimating;
|
||||
},
|
||||
|
||||
getFlipTreeY: function() {
|
||||
return _flipTreeY;
|
||||
},
|
||||
|
||||
dispatchToken: AppDispatcher.register(function(payload) {
|
||||
var action = payload.action;
|
||||
var shouldInform = false;
|
||||
|
@ -29,6 +34,8 @@ AppConstants.StoreSubscribePrototype,
|
|||
shouldInform = true;
|
||||
break;
|
||||
case ActionTypes.CHANGE_FLIP_TREE_Y:
|
||||
_flipTreeY = action.flipTreeY;
|
||||
shouldInform = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue