forked from 0x2620/oxjs
fix a bug that would keep loadFile from caching files
This commit is contained in:
parent
116d0bfdbf
commit
925aa8d627
2 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue