From 5c74c7b415f3077528290a4a35b660db932072a6 Mon Sep 17 00:00:00 2001 From: Ventero Date: Sat, 29 Sep 2012 12:29:43 +0200 Subject: [PATCH] Always clear the image load timeout job. --- openseadragon.js | 4 ++-- src/drawer.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openseadragon.js b/openseadragon.js index b002a24f..7a89136d 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -7995,11 +7995,11 @@ $.Drawer.prototype = { }; image.onload = function(){ - finishLoadingImage( image, complete, true ); + finishLoadingImage( image, complete, true, jobid ); }; image.onabort = image.onerror = function(){ - finishLoadingImage( image, complete, false ); + finishLoadingImage( image, complete, false, jobid ); }; jobid = window.setTimeout( function(){ diff --git a/src/drawer.js b/src/drawer.js index 1cc5082a..c64ae86d 100644 --- a/src/drawer.js +++ b/src/drawer.js @@ -311,11 +311,11 @@ $.Drawer.prototype = { }; image.onload = function(){ - finishLoadingImage( image, complete, true ); + finishLoadingImage( image, complete, true, jobid ); }; image.onabort = image.onerror = function(){ - finishLoadingImage( image, complete, false ); + finishLoadingImage( image, complete, false, jobid ); }; jobid = window.setTimeout( function(){