Commit 6f4b36ed authored by jaubourg's avatar jaubourg

Replaces jQuery.each loop for headers with a foreach loop.

parent f6e17343
...@@ -102,9 +102,9 @@ if ( jQuery.support.ajax ) { ...@@ -102,9 +102,9 @@ if ( jQuery.support.ajax ) {
// Need an extra try/catch for cross domain requests in Firefox 3 // Need an extra try/catch for cross domain requests in Firefox 3
try { try {
jQuery.each( headers, function( key, value ) { for ( i in headers ) {
xhr.setRequestHeader( key, value ); xhr.setRequestHeader( i, headers[ i ] );
} ); }
} catch( _ ) {} } catch( _ ) {}
// Do send the request // Do send the request
......
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