1
0
Fork 0
forked from 0x2620/oxjs

load modules with Ox.VERSION in build mode to make caching work

This commit is contained in:
j 2014-01-11 04:56:12 +00:00
commit 0588ebe211
3 changed files with 5 additions and 4 deletions

View file

@ -230,7 +230,7 @@ Ox.load.UI = function(options, callback) {
function loadFiles() {
Ox.getFile(Ox.PATH + '/Ox.UI/jquery/jquery.js', function() {
Ox.getFile(Ox.PATH + '/Ox.UI/jquery/jquery.js?' + Ox.VERSION, function() {
initUI();
Ox.getJSON(Ox.UI.PATH + 'json/Ox.UI.json?' + Ox.VERSION, function(data) {
var counter = 0, length = data.files.length;
@ -243,7 +243,7 @@ Ox.load.UI = function(options, callback) {
++counter == length && initThemes();
});
} else {
Ox.getFile(Ox.PATH + file, function() {
Ox.getFile(Ox.PATH + file + '?' + Ox.VERSION, function() {
++counter == length && initThemes();
});
}