aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-02-17 10:05:25 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-02-19 11:30:59 +0300
commita4715f4216ace92fba6991106053415e66289686 (patch)
treedbb4d2677f5b8e9a5203489514cd446b7b04a4d1 /src/ajax
parent8356281bed643bb3d56ad02f52580a0e20dc0237 (diff)
downloadjquery-a4715f4216ace92fba6991106053415e66289686.tar.gz
jquery-a4715f4216ace92fba6991106053415e66289686.zip
Ajax: remove use of jQuery#each second argument
Ref gh-2090
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/load.js4
1 files changed, 3 insertions, 1 deletions
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 ] );
+ });
});
}