Don't recurse up prototype.

master
Jason A. Donenfeld 2011-05-17 02:58:44 -04:00
parent 346b9eee43
commit c312863f85
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}).call(this);