diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-17 10:05:25 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-19 11:30:59 +0300 |
commit | a4715f4216ace92fba6991106053415e66289686 (patch) | |
tree | dbb4d2677f5b8e9a5203489514cd446b7b04a4d1 /src/ajax | |
parent | 8356281bed643bb3d56ad02f52580a0e20dc0237 (diff) | |
download | jquery-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.js | 4 |
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 ] ); + }); }); } |