Skip to content
Permalink
Browse files
Ajax: remove use of jQuery#each second argument
  • Loading branch information
markelog committed Feb 17, 2015
1 parent 9d1b989 commit 407558ae223c7b3d4f547b31b6f334a4e242b4a5
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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 407558a

Please sign in to comment.