1
0
Fork 0
forked from 0x2620/oxjs

new build system: build in /build, dev version in /dev; split up Ox.js; fix tests

This commit is contained in:
rolux 2011-10-07 03:04:47 +02:00
commit d0fe279a0f
366 changed files with 8165 additions and 161926 deletions

View file

@ -1,7 +1,6 @@
Ox.load.UI = function(options, callback) {
options = Ox.extend({
debug: false,
hideScreen: true,
loadImages: true,
showScreen: false,
@ -198,16 +197,10 @@ Ox.load.UI = function(options, callback) {
function loadFiles() {
Ox.loadFile(Ox.PATH + 'jquery/jquery' + (options.debug ? '' : '.min') + '.js', function() {
Ox.loadFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() {
initUI();
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.files.json', function(files) {
var promises = [];
if (options.debug == false) {
files = files.filter(function(file) {
return !Ox.startsWith(file, 'Ox.UI/js/');
});
files.push('Ox.UI/js/Ox.UI.js');
}
files.forEach(function(file) {
var dfd = new $.Deferred();
promises.push(dfd.promise());