Remove unnecessary custom complete event checker

This commit is contained in:
Niklas von Hertzen 2013-09-04 20:17:38 +03:00
parent e9c3d9d332
commit b6ebf2acf6

View File

@ -230,17 +230,6 @@ _html2canvas.Preload = function( options ) {
images.numTotal++; images.numTotal++;
setImageLoadHandlers(img, imageObj); setImageLoadHandlers(img, imageObj);
img.src = src; img.src = src;
// work around for https://bugs.webkit.org/show_bug.cgi?id=80028
img.customComplete = function () {
if (!this.img.complete) {
this.timer = window.setTimeout(this.img.customComplete, 100);
} else {
this.img.onerror();
}
}.bind(imageObj);
img.customComplete();
} else if ( options.proxy ) { } else if ( options.proxy ) {
imageObj = images[src] = { imageObj = images[src] = {
img: img img: img