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++;
|
||||
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();
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user