Skip to content

Commit 1e1e056

Browse files
committed
IE8 doesn't have a native JSON object
1 parent 273c38d commit 1e1e056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jQuery.XDomainRequest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (!jQuery.support.cors && window.XDomainRequest) {
3939
try {
4040
if (userType === 'json') {
4141
try {
42-
responses.json = JSON.parse(xdr.responseText);
42+
responses.json = jQuery.parseJSON(xdr.responseText);
4343
} catch(e) {
4444
status.code = 500;
4545
status.message = 'parseerror';
@@ -83,4 +83,4 @@ if (!jQuery.support.cors && window.XDomainRequest) {
8383
};
8484
}
8585
});
86-
}
86+
}

0 commit comments

Comments
 (0)