Removes now unnecessary regexp and companion function. Fixes some spacing issues. Shortens field names.

This commit is contained in:
jaubourg 2011-04-15 14:16:43 -07:00
parent 4d3cb7d7ee
commit a519129e99
2 changed files with 8 additions and 12 deletions

View file

@ -104,7 +104,7 @@ if ( jQuery.support.ajax ) {
// Need an extra try/catch for cross domain requests in Firefox 3
try {
for ( i in headers ) {
xhr.setRequestHeader( headers[ i ].name, headers[ i ].value );
xhr.setRequestHeader( headers[ i ].n, headers[ i ].v );
}
} catch( _ ) {}