Permalink
Browse files

Ajax: remove use of jQuery#each second argument

(cherry-picked from a4715f4)
Ref gh-2090
  • Loading branch information...
markelog committed Feb 17, 2015
1 parent bc9e573 commit 08777336be849f6241fcb3b5455b5b76af6aae61
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ajax/load.js
View
@@ -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 ] );
});
});
}

0 comments on commit 0877733

Please sign in to comment.