From 0d5de4332fea68a9b0e6d51383279873b366310f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 23 Apr 2011 01:12:04 +0200 Subject: [PATCH] keep images in cache --- source/js/OxUI.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/js/OxUI.js b/source/js/OxUI.js index e22cff0a..73ba4427 100644 --- a/source/js/OxUI.js +++ b/source/js/OxUI.js @@ -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(); }