From a4715f4216ace92fba6991106053415e66289686 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 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 f8f0c396a..00a9f46f6 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