diff options
author | jaubourg <j@ubourg.net> | 2013-01-21 03:05:03 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2013-01-21 03:05:03 +0100 |
commit | 1c77259d06e49ccaedbd0f7adf968e10748dacc0 (patch) | |
tree | 38530792ea765a32a3fb173eebb20f43d83239e8 /src/ajax/script.js | |
parent | 4c6fb65d358f6a9795f06ec8d5ed3acad6ad795d (diff) | |
download | jquery-1c77259d06e49ccaedbd0f7adf968e10748dacc0.tar.gz jquery-1c77259d06e49ccaedbd0f7adf968e10748dacc0.zip |
Removes unnecessary call to `.off()` as noted by @dcherman.
Diffstat (limited to 'src/ajax/script.js')
-rw-r--r-- | src/ajax/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/script.js b/src/ajax/script.js index a16e56dfa..fe0562a84 100644 --- a/src/ajax/script.js +++ b/src/ajax/script.js @@ -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 ); |