From: Oleg Gaidarenko Date: Tue, 17 Feb 2015 07:05:25 +0000 (+0300) Subject: Ajax: remove use of jQuery#each second argument X-Git-Tag: 3.0.0-alpha1+compat~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=08777336be849f6241fcb3b5455b5b76af6aae61;p=jquery.git Ajax: remove use of jQuery#each second argument (cherry-picked from a4715f4216ace92fba6991106053415e66289686) Ref gh-2090 --- diff --git a/src/ajax/load.js b/src/ajax/load.js index d9c4550fb..d28277bde 100644 --- a/src/ajax/load.js +++ b/src/ajax/load.js @@ -70,7 +70,9 @@ jQuery.fn.load = function( url, params, callback ) { // but they are ignored because response was set above. // If it fails, this function gets "jqXHR", "status", "error" }).always( callback && function( jqXHR, status ) { - self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); + self.each( function() { + callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] ); + }); }); }