update Ox.MODE if switching to minified on load

This commit is contained in:
rolux 2013-12-06 11:11:56 +01:00
parent 525218dc35
commit caa897c698

View file

@ -15,6 +15,7 @@
if (args[0] === true && regexp.test(path)) { if (args[0] === true && regexp.test(path)) {
path = path.replace(regexp, 'build/'); path = path.replace(regexp, 'build/');
loadScript('Ox.js', function() { loadScript('Ox.js', function() {
Ox.MODE = 'build';
Ox.PATH = path; Ox.PATH = path;
Ox.load.apply(null, Ox.slice(args, 1)); Ox.load.apply(null, Ox.slice(args, 1));
}); });