Skip to content

Commit a4715f4

Browse files
committed
Ajax: remove use of jQuery#each second argument
Ref gh-2090
1 parent 8356281 commit a4715f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ajax/load.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ jQuery.fn.load = function( url, params, callback ) {
7070
// but they are ignored because response was set above.
7171
// If it fails, this function gets "jqXHR", "status", "error"
7272
}).always( callback && function( jqXHR, status ) {
73-
self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
73+
self.each( function() {
74+
callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );
75+
});
7476
});
7577
}
7678

0 commit comments

Comments
 (0)