Always clear the image load timeout job.

This commit is contained in:
Ventero 2012-09-29 12:29:43 +02:00
parent bebc7a64ff
commit 5c74c7b415
2 changed files with 4 additions and 4 deletions

View File

@ -7995,11 +7995,11 @@ $.Drawer.prototype = {
}; };
image.onload = function(){ image.onload = function(){
finishLoadingImage( image, complete, true ); finishLoadingImage( image, complete, true, jobid );
}; };
image.onabort = image.onerror = function(){ image.onabort = image.onerror = function(){
finishLoadingImage( image, complete, false ); finishLoadingImage( image, complete, false, jobid );
}; };
jobid = window.setTimeout( function(){ jobid = window.setTimeout( function(){

View File

@ -311,11 +311,11 @@ $.Drawer.prototype = {
}; };
image.onload = function(){ image.onload = function(){
finishLoadingImage( image, complete, true ); finishLoadingImage( image, complete, true, jobid );
}; };
image.onabort = image.onerror = function(){ image.onabort = image.onerror = function(){
finishLoadingImage( image, complete, false ); finishLoadingImage( image, complete, false, jobid );
}; };
jobid = window.setTimeout( function(){ jobid = window.setTimeout( function(){