This commit is contained in:
Nicolas Stepien 2012-06-20 23:08:24 +02:00
parent f07b9f1dfa
commit a7ac32e3b5

View File

@ -279,6 +279,8 @@ $.extend $,
type or= form and 'post' or 'get'
r.open type, url, true
r.responseType =
# XXX Chrome doesn't support 'json' as responseType yet.
# XXX Opera gives an XMLDocument for 'document'.
if $.engine is 'presto' and responseType is 'document' or $.engine is 'webkit' and responseType is 'json'
''
else