cleanup event handers of image objects after use

This commit is contained in:
MoyuScript 2012-03-05 07:54:42 +01:00
parent e855b254c4
commit c8ad05fa15

View File

@ -183,6 +183,7 @@ _html2canvas.Preload = function( options ) {
images.numLoaded++;
imageObj.succeeded = true;
img.onerror = img.onload = null;
start();
};
img.onerror = function() {
@ -207,6 +208,7 @@ _html2canvas.Preload = function( options ) {
images.numLoaded++;
images.numFailed++;
imageObj.succeeded = false;
img.onerror = img.onload = null;
start();
};