when switching version in loader, update path

This commit is contained in:
rolux 2012-06-26 20:10:31 +02:00
parent dad0893144
commit 7648d2d4ac

View file

@ -12,9 +12,9 @@
time = +new Date(); time = +new Date();
if (args[0] === true) { if (args[0] === true) {
console.log('OK')
path = path.replace(/dev\/$/, 'build/'); path = path.replace(/dev\/$/, 'build/');
loadScript('Ox.js', function() { loadScript('Ox.js', function() {
Ox.PATH = path;
Ox.load.apply(null, Ox.slice(args, 1)); Ox.load.apply(null, Ox.slice(args, 1));
}); });
} else { } else {