mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 23:45:06 -05:00
Ajax: remove use of jQuery#each second argument
(cherry-picked from a4715f4216)
Ref gh-2090
This commit is contained in:
@@ -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 ] );
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user