aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2012-10-20 21:24:07 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-10-20 21:25:39 -0400
commitcafb542da901254fb5dff0f7bc97f0d2521c45a7 (patch)
tree836899a6c47555de489138b3faec6bd1db3de48f /src/ajax
parent8076a33bd86d15b80992602f4cd662ef741fd803 (diff)
downloadjquery-cafb542da901254fb5dff0f7bc97f0d2521c45a7.tar.gz
jquery-cafb542da901254fb5dff0f7bc97f0d2521c45a7.zip
Alternate fix for #11426; check responseText. Close gh-843.
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/xhr.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index a24feaf1a..d3422ec79 100644
--- a/src/ajax/xhr.js
+++ b/src/ajax/xhr.js
@@ -148,9 +148,8 @@ if ( jQuery.support.ajax ) {
// When requesting binary data, IE6-9 will throw an exception
// on any attempt to access responseText (#11426)
- try {
+ if ( typeof xhr.responseText === "string" ) {
responses.text = xhr.responseText;
- } catch( err ) {
}
// Firefox throws an exception when accessing