1
0
Fork 0
forked from 0x2620/oxjs

fix a bug that would keep loadFile from caching files

This commit is contained in:
rlx 2011-10-23 16:00:59 +00:00
commit 925aa8d627
2 changed files with 5 additions and 3 deletions

View file

@ -91,10 +91,10 @@ Ox.loadFile = (function() {
if (isImage) {
// for an image, save the element itself,
// so that it remains in the browser cache
cache['file'] = element;
cache[file] = element;
callback(element);
} else {
cache['file'] = true;
cache[file] = true;
callback();
}
}