Skip to content

Commit

Permalink
Alternate fix for #11426; check responseText. Close gh-843.
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog authored and dmethvin committed Oct 21, 2012
1 parent 8076a33 commit cafb542
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ajax/xhr.js
Expand Up @@ -148,9 +148,8 @@ if ( jQuery.support.ajax ) {


// When requesting binary data, IE6-9 will throw an exception // When requesting binary data, IE6-9 will throw an exception
// on any attempt to access responseText (#11426) // on any attempt to access responseText (#11426)
try { if ( typeof xhr.responseText === "string" ) {
responses.text = xhr.responseText; responses.text = xhr.responseText;
} catch( err ) {
} }


// Firefox throws an exception when accessing // Firefox throws an exception when accessing
Expand Down

0 comments on commit cafb542

Please sign in to comment.