mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-01 00:25:15 +02:00
removed 6 underscore requires
This commit is contained in:
parent
b5cf7f9343
commit
93d9ac693f
11 changed files with 48 additions and 31 deletions
|
@ -1,5 +1,3 @@
|
|||
var _ = require('underscore');
|
||||
|
||||
var toGlobalize = {
|
||||
App: require('../app/index.js'),
|
||||
Tree: require('../visuals/tree'),
|
||||
|
@ -37,7 +35,9 @@ var toGlobalize = {
|
|||
Intl: require('../intl')
|
||||
};
|
||||
|
||||
_.each(toGlobalize, function(module, moduleName) {
|
||||
Object.keys(toGlobalize).forEach(function(moduleName) {
|
||||
var module = toGlobalize[moduleName];
|
||||
|
||||
for (var key in module) {
|
||||
var value = module[key];
|
||||
if (value instanceof Function) {
|
||||
|
@ -53,7 +53,6 @@ $(document).ready(function() {
|
|||
window.debug_sandbox = toGlobalize.Main.getSandbox();
|
||||
window.debug_modules = toGlobalize;
|
||||
window.debug_levelDropdown = toGlobalize.Main.getLevelDropdown();
|
||||
window.debug_under = _;
|
||||
window.debug_copyTree = function() {
|
||||
return toGlobalize.Main.getSandbox().mainVis.gitEngine.printAndCopyTree();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue