flatten directory hierarchy by removing the

lib directory
This commit is contained in:
Fabian Jakobs 2011-08-04 14:05:01 +02:00
commit f8bab3dbd5
180 changed files with 98 additions and 30 deletions

View file

@ -40,6 +40,27 @@
define(function(require, exports, module) {
var themes = {};
function loadTheme(name, callback) {
if (themes[name])
return;
themes[name] = 1;
var base = name.split("/").pop();
var fileName = "src/theme-" + base + ".js";
loadScriptFile(fileName, callback)
}
function loadScriptFile(path, callback) {
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('script');
s.src = path;
head.appendChild(s);
s.onload = callback;
}
require("ace/lib/fixoldbrowsers");
var env = {};
@ -677,26 +698,5 @@ define(function(require, exports, module) {
session.addFold(placeHolder, range);
}
}
var themes = {};
function loadTheme(name, callback) {
if (themes[name])
return;
themes[name] = 1;
var base = name.split("/").pop();
var fileName = "src/theme-" + base + ".js";
loadScriptFile(fileName, callback)
}
function loadScriptFile(path, callback) {
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('script');
s.src = path;
head.appendChild(s);
s.onload = callback;
}
});