]> source.dussan.org Git - jquery.git/commitdiff
Removes unnecessary call to `.off()` as noted by @dcherman.
authorjaubourg <j@ubourg.net>
Mon, 21 Jan 2013 02:05:03 +0000 (03:05 +0100)
committerjaubourg <j@ubourg.net>
Mon, 21 Jan 2013 02:05:03 +0000 (03:05 +0100)
src/ajax/script.js

index a16e56dfa752fa35ca51bca4f0044ecbc794432c..fe0562a84ae1042c53daa787b86d6e4cf1ef7987 100644 (file)
@@ -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 );