From 1c77259d06e49ccaedbd0f7adf968e10748dacc0 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Mon, 21 Jan 2013 03:05:03 +0100 Subject: [PATCH] Removes unnecessary call to `.off()` as noted by @dcherman. --- src/ajax/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5