Commit cafb542d authored by Oleg Gaidarenko's avatar Oleg Gaidarenko Committed by Dave Methvin

Alternate fix for #11426; check responseText. Close gh-843.

parent 8076a33b
...@@ -148,9 +148,8 @@ if ( jQuery.support.ajax ) { ...@@ -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
......
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