diff --git a/openseadragon.js b/openseadragon.js index 7a89136d..8a792d54 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -7977,11 +7977,11 @@ $.Drawer.prototype = { image = new Image(); - complete = function( imagesrc ){ + complete = function( imagesrc, img ){ _this.downloading--; if (typeof ( callback ) == "function") { try { - callback( image ); + callback( img ); } catch ( e ) { $.console.error( "%s while executing %s callback: %s", diff --git a/src/drawer.js b/src/drawer.js index c64ae86d..d04c287e 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -293,11 +293,11 @@ $.Drawer.prototype = { image = new Image(); - complete = function( imagesrc ){ + complete = function( imagesrc, img ){ _this.downloading--; if (typeof ( callback ) == "function") { try { - callback( image ); + callback( img ); } catch ( e ) { $.console.error( "%s while executing %s callback: %s",