mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
cleanup event handers of image objects after use
This commit is contained in:
parent
8a5b09be70
commit
0674543ab1
@ -183,6 +183,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
|
|
||||||
images.numLoaded++;
|
images.numLoaded++;
|
||||||
imageObj.succeeded = true;
|
imageObj.succeeded = true;
|
||||||
|
img.onerror = img.onload = null;
|
||||||
start();
|
start();
|
||||||
};
|
};
|
||||||
img.onerror = function() {
|
img.onerror = function() {
|
||||||
@ -207,6 +208,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
images.numLoaded++;
|
images.numLoaded++;
|
||||||
images.numFailed++;
|
images.numFailed++;
|
||||||
imageObj.succeeded = false;
|
imageObj.succeeded = false;
|
||||||
|
img.onerror = img.onload = null;
|
||||||
start();
|
start();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user