Skip to content

Commit 925b570

Browse files
author
Jason Moon
committed
Merge pull request #2 from fidian/master
Use $.parseJSON instead of JSON.parse
2 parents 273c38d + 1e1e056 commit 925b570

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)