From 08777336be849f6241fcb3b5455b5b76af6aae61 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 17 Feb 2015 10:05:25 +0300 Subject: [PATCH] Ajax: remove use of jQuery#each second argument (cherry-picked from a4715f4216ace92fba6991106053415e66289686) Ref gh-2090 --- src/ajax/load.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ] ); + }); }); } -- 2.39.5