keep images in cache
This commit is contained in:
parent
840eadf914
commit
0d5de4332f
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,7 @@
|
|||
warning: '\u26A0',
|
||||
white_star: '\u2606'
|
||||
};
|
||||
Ox.IMAGE_CACHE = [];
|
||||
$.getJSON(Ox.UI.PATH + 'json/OxUI.json', function(data) {
|
||||
|
||||
function loadImage(src) {
|
||||
|
@ -166,6 +167,7 @@
|
|||
dfd.resolve();
|
||||
};
|
||||
image.src = Ox.UI.PATH + src;
|
||||
Ox.IMAGE_CACHE.push(src);
|
||||
return dfd.promise();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue