aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:58:44 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:58:44 -0400
commitc312863f8507e3a35d4beb9e635a69fb93dff725 (patch)
treee22cb6144ad355675901de5cfb6323f3e760ff4e /web
parentProper equality comparisons. (diff)
downloadPhotoFloat-c312863f8507e3a35d4beb9e635a69fb93dff725.tar.xz
PhotoFloat-c312863f8507e3a35d4beb9e635a69fb93dff725.zip
Don't recurse up prototype.
Diffstat (limited to 'web')
-rw-r--r--web/js/010-libphotofloat.js4
1 files changed, 2 insertions, 2 deletions
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);