From c312863f8507e3a35d4beb9e635a69fb93dff725 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 17 May 2011 02:58:44 -0400 Subject: [PATCH] Don't recurse up prototype. --- web/js/010-libphotofloat.js | 4 ++-- 1 file 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);