starting better image buffering

This commit is contained in:
Bala Clark 2010-07-09 16:34:27 +01:00
parent 8f859a3f80
commit 3b7af74aa2

View file

@ -128,6 +128,10 @@ function ComicBook(id, srcs, opts) {
if (srcs.length < buffer) { buffer = srcs.length; } // don't get stuck if the buffer level is higher than the number of pages
function preload(srcs) {
}
/*
srcs.forEach(function(src, i) {
var page = new Image();
@ -139,6 +143,7 @@ function ComicBook(id, srcs, opts) {
if (loaded == buffer) { ComicBook.prototype.drawPage(); }
};
});
*/
};
/**