Don't recurse up prototype.
This commit is contained in:
parent
346b9eee43
commit
c312863f85
@ -85,7 +85,7 @@
|
|||||||
cacheKey = subalbum;
|
cacheKey = subalbum;
|
||||||
else
|
else
|
||||||
cacheKey = PhotoFloat.cachePath(subalbum.parent.path + "/" + subalbum.path);
|
cacheKey = PhotoFloat.cachePath(subalbum.parent.path + "/" + subalbum.path);
|
||||||
if (cacheKey in this.albumCache) {
|
if (this.albumCache.hasOwnProperty(cacheKey)) {
|
||||||
callback(this.albumCache[cacheKey]);
|
callback(this.albumCache[cacheKey]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -158,4 +158,4 @@
|
|||||||
return PhotoFloat;
|
return PhotoFloat;
|
||||||
})();
|
})();
|
||||||
window.PhotoFloat = PhotoFloat;
|
window.PhotoFloat = PhotoFloat;
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user