diff --git a/web/js/010-libphotofloat.js b/web/js/010-libphotofloat.js index d1defad..2a54813 100644 --- a/web/js/010-libphotofloat.js +++ b/web/js/010-libphotofloat.js @@ -85,7 +85,7 @@ cacheKey = subalbum; else cacheKey = PhotoFloat.cachePath(subalbum.parent.path + "/" + subalbum.path); - if (cacheKey in this.albumCache) { + if (this.albumCache.hasOwnProperty(cacheKey)) { callback(this.albumCache[cacheKey]); return; } @@ -158,4 +158,4 @@ return PhotoFloat; })(); window.PhotoFloat = PhotoFloat; -}).call(this); \ No newline at end of file +}).call(this);