removed 6 underscore requires

This commit is contained in:
Peter Cottle 2015-04-20 16:19:15 +10:00
parent b5cf7f9343
commit 93d9ac693f
11 changed files with 48 additions and 31 deletions

View file

@ -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();
};