mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removes unnecessary call to .off()
as noted by @dcherman.
This commit is contained in:
parent
4c6fb65d35
commit
1c77259d06
@ -38,7 +38,7 @@ jQuery.ajaxTransport( "script", function( s ) {
|
||||
}).on(
|
||||
"load error",
|
||||
callback = function( evt ) {
|
||||
script.off().remove();
|
||||
script.remove();
|
||||
callback = null;
|
||||
if ( evt ) {
|
||||
complete( evt.type === "error" ? 404 : 200, evt.type );
|
||||
|
Loading…
Reference in New Issue
Block a user