Skip to content

Commit

Permalink
Removes unnecessary call to .off() as noted by @dcherman.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaubourg committed Jan 21, 2013
1 parent 4c6fb65 commit 1c77259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax/script.js
Expand Up @@ -38,7 +38,7 @@ jQuery.ajaxTransport( "script", function( s ) {
}).on( }).on(
"load error", "load error",
callback = function( evt ) { callback = function( evt ) {
script.off().remove(); script.remove();
callback = null; callback = null;
if ( evt ) { if ( evt ) {
complete( evt.type === "error" ? 404 : 200, evt.type ); complete( evt.type === "error" ? 404 : 200, evt.type );
Expand Down

0 comments on commit 1c77259

Please sign in to comment.