imgcache.js
imgcache.js copied to clipboard
getCachedFileURL does not call error callback when image cache is not loaded
When Private.isImgCacheLoaded returns false in ImgCache.getCachedFile then the function exists immediately, this is surprising behaviour when using functions such as ImgCache.getCachedFileURL as I would expect any error to trigger an error callback if one is provided.