mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-30 22:59:38 +02:00
41 lines
806 B
JavaScript
41 lines
806 B
JavaScript
"use strict";
|
|
|
|
var keyMirror = require('../util/keyMirror');
|
|
|
|
var CHANGE_EVENT = 'change';
|
|
|
|
module.exports = {
|
|
|
|
CHANGE_EVENT: CHANGE_EVENT,
|
|
|
|
StoreSubscribePrototype: {
|
|
subscribe: function(cb) {
|
|
this.on(CHANGE_EVENT, cb);
|
|
},
|
|
|
|
unsubscribe: function(cb) {
|
|
this.removeListener(CHANGE_EVENT, cb);
|
|
}
|
|
},
|
|
|
|
ActionTypes: keyMirror({
|
|
SET_LEVEL_SOLVED: null,
|
|
RESET_LEVELS_SOLVED: null,
|
|
CHANGE_IS_ANIMATING: null,
|
|
CHANGE_FLIP_TREE_Y: null,
|
|
SUBMIT_COMMAND: null,
|
|
CHANGE_LOCALE: null,
|
|
CHANGE_LOCALE_FROM_HEADER: null,
|
|
/**
|
|
* only dispatched when you actually
|
|
* solve the level, not ask for solution
|
|
* or solve it again.
|
|
*/
|
|
SOLVE_LEVEL: null
|
|
}),
|
|
|
|
PayloadSources: keyMirror({
|
|
VIEW_ACTION: null,
|
|
URI_ACTION: null
|
|
})
|
|
};
|