aboutsummaryrefslogtreecommitdiffstats
path: root/npm_assets/node_modules/jquery/src/ajax.js
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-04-20 00:13:08 -0400
commitaca2787b50094a4ab1f17162aa92c5263858743e (patch)
treec227d3a22fe454f92162d8d91ecb81f3141ace94 /npm_assets/node_modules/jquery/src/ajax.js
parent78e717290e125cab92aef712f12ae63fedb4070f (diff)
parent942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (diff)
Update upstream source from tag 'upstream/8.2.0'
Update to upstream version '8.2.0' with Debian dir 65d01d7d78d6b41c0be6eb196ed84354526f9384
Diffstat (limited to 'npm_assets/node_modules/jquery/src/ajax.js')
-rw-r--r--npm_assets/node_modules/jquery/src/ajax.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/npm_assets/node_modules/jquery/src/ajax.js b/npm_assets/node_modules/jquery/src/ajax.js
index d1bebd5..4be4a9e 100644
--- a/npm_assets/node_modules/jquery/src/ajax.js
+++ b/npm_assets/node_modules/jquery/src/ajax.js
@@ -50,7 +50,8 @@ var
// Anchor tag for parsing the document origin
originAnchor = document.createElement( "a" );
- originAnchor.href = location.href;
+
+originAnchor.href = location.href;
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
function addToPrefiltersOrTransports( structure ) {
@@ -431,8 +432,8 @@ jQuery.extend( {
// Context for global events is callbackContext if it is a DOM node or jQuery collection
globalEventContext = s.context &&
( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
+ jQuery( callbackContext ) :
+ jQuery.event,
// Deferreds
deferred = jQuery.Deferred(),
@@ -744,8 +745,10 @@ jQuery.extend( {
response = ajaxHandleResponses( s, jqXHR, responses );
}
- // Use a noop converter for missing script
- if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) {
+ // Use a noop converter for missing script but not if jsonp
+ if ( !isSuccess &&
+ jQuery.inArray( "script", s.dataTypes ) > -1 &&
+ jQuery.inArray( "json", s.dataTypes ) < 0 ) {
s.converters[ "text script" ] = function() {};
}