|
@@ -20,6 +20,8 @@ Object.assign( ImageLoader.prototype, {
|
|
var image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' );
|
|
var image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' );
|
|
image.onload = function () {
|
|
image.onload = function () {
|
|
|
|
|
|
|
|
+ image.onload = null;
|
|
|
|
+
|
|
URL.revokeObjectURL( image.src );
|
|
URL.revokeObjectURL( image.src );
|
|
|
|
|
|
if ( onLoad ) onLoad( image );
|
|
if ( onLoad ) onLoad( image );
|