Skip to content

Commit

Permalink
Makes sure aborting an img request does actually abort it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaubourg committed Aug 12, 2011
1 parent 5c7e541 commit c0f4675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ajax/img.js
Expand Up @@ -22,6 +22,8 @@ jQuery.ajaxTransport( "img", function( s ) {
} else { } else {
complete( 404, "Not Found" ); complete( 404, "Not Found" );
} }
} else {
img.src = null;
} }
}; };
image = new Image(); image = new Image();
Expand Down

0 comments on commit c0f4675

Please sign in to comment.