Remove after load

This commit is contained in:
Tobias Reich 2014-09-25 20:44:51 +02:00
parent f2486ac08f
commit 68853a5038
2 changed files with 5 additions and 4 deletions

View File

@ -46,7 +46,7 @@ photo = {
lychee.imageview.show();
setTimeout(function() {
lychee.content.show();
if (!mobileBrowser()) photo.preloadNext(photoID,albumID);
if (!mobileBrowser()) photo.preloadNext(photoID, albumID);
}, 300);
});
@ -67,8 +67,9 @@ photo = {
nextPhoto = album.json.content[photoID].nextPhoto;
url = album.json.content[nextPhoto].url;
photo.cache = new Image();
photo.cache.src = url;
photo.cache = new Image();
photo.cache.src = url;
photo.cache.onload = function() { photo.cache = null };
}

File diff suppressed because one or more lines are too long