in Ox.js loader, always call Ox.load - also if no arguments precede the callback

This commit is contained in:
rolux 2012-06-22 15:04:21 +02:00
parent f15d6cad0f
commit 5e68ebfde1

View file

@ -14,11 +14,7 @@
loadJSON(function(data) {
loadScriptsSerial(data.files, function() {
Ox.VERSION = data.version;
if (args.length == 1) {
callback()
} else {
Ox.load.apply(null, args);
}
Ox.load.apply(null, args);
});
});