Commit 90d9c463 authored by Richard Gibson's avatar Richard Gibson

No ticket: Update style per gh-1418 comments

parent 45a45599
...@@ -77,11 +77,9 @@ if ( xhrSupported ) { ...@@ -77,11 +77,9 @@ if ( xhrSupported ) {
} }
// 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 {
for ( i in headers ) { for ( i in headers ) {
xhr.setRequestHeader( i, headers[ i ] ); xhr.setRequestHeader( i, headers[ i ] );
} }
} catch( err ) {}
// Do send the request // Do send the request
// This may raise an exception which is actually // This may raise an exception which is actually
...@@ -114,8 +112,8 @@ if ( xhrSupported ) { ...@@ -114,8 +112,8 @@ if ( xhrSupported ) {
status = xhr.status; status = xhr.status;
// Support: IE<10 // Support: IE<10
// #11426: When requesting binary data, IE9 will throw an exception // Accessing binary-data responseText throws an exception
// on any attempt to access responseText // (#11426)
if ( typeof xhr.responseText === "string" ) { if ( typeof xhr.responseText === "string" ) {
responses.text = xhr.responseText; responses.text = xhr.responseText;
} }
...@@ -186,7 +184,7 @@ function createStandardXHR() { ...@@ -186,7 +184,7 @@ function createStandardXHR() {
function createActiveXHR() { function createActiveXHR() {
try { try {
return new window.ActiveXObject("Microsoft.XMLHTTP"); return new window.ActiveXObject( "Microsoft.XMLHTTP" );
} catch( e ) {} } catch( e ) {}
} }
......
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