From b6ebf2acf68054292f439b80ed96c17c0b6cf04e Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Wed, 4 Sep 2013 20:17:38 +0300 Subject: [PATCH] Remove unnecessary custom complete event checker --- src/Preload.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Preload.js b/src/Preload.js index e826057..f7b1ed7 100644 --- a/src/Preload.js +++ b/src/Preload.js @@ -230,17 +230,6 @@ _html2canvas.Preload = function( options ) { images.numTotal++; setImageLoadHandlers(img, imageObj); 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 ) { imageObj = images[src] = { img: img