mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-13 16:14:27 +02:00
[Flux] Level store and test
This commit is contained in:
parent
304633228c
commit
22fbcdc0a3
6 changed files with 152 additions and 37 deletions
|
@ -6,6 +6,8 @@ var toGlobalize = {
|
|||
Visuals: require('../visuals'),
|
||||
Git: require('../git'),
|
||||
CommandModel: require('../models/commandModel'),
|
||||
LevelActions: require('../actions/LevelActions'),
|
||||
LevelStore: require('../stores/LevelStore'),
|
||||
LocaleActions: require('../actions/LocaleActions'),
|
||||
LocaleStore: require('../stores/LocaleStore'),
|
||||
Levels: require('../graph/treeCompare'),
|
||||
|
@ -36,7 +38,11 @@ var toGlobalize = {
|
|||
|
||||
_.each(toGlobalize, function(module, moduleName) {
|
||||
for (var key in module) {
|
||||
window['debug_' + moduleName + '_' + key] = module[key];
|
||||
var value = module[key];
|
||||
if (value instanceof Function) {
|
||||
value = value.bind(module);
|
||||
}
|
||||
window['debug_' + moduleName + '_' + key] = value;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue