Commit 08777336 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

Ajax: remove use of jQuery#each second argument

(cherry-picked from a4715f4216ace92fba6991106053415e66289686)
Ref gh-2090
parent bc9e5736
...@@ -70,7 +70,9 @@ jQuery.fn.load = function( url, params, callback ) { ...@@ -70,7 +70,9 @@ jQuery.fn.load = function( url, params, callback ) {
// but they are ignored because response was set above. // but they are ignored because response was set above.
// If it fails, this function gets "jqXHR", "status", "error" // If it fails, this function gets "jqXHR", "status", "error"
}).always( callback && function( jqXHR, status ) { }).always( callback && function( jqXHR, status ) {
self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); self.each( function() {
callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );
});
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment