forked from 0x2620/oxjs
load modules with Ox.VERSION in build mode to make caching work
This commit is contained in:
parent
0be0d5fbb7
commit
0588ebe211
3 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue