From 8ac6a7ef3809cb511b10494d9c1f4654db1e071e Mon Sep 17 00:00:00 2001 From: Stamatis Katsaounis Date: Thu, 1 Nov 2018 12:44:50 +0200 Subject: Dynamically fetching javascript dependencies JIRA: DOVETAIL-746 This patch deletes the source code of javascript dependencies from web portal. Furthermore, it uses npm to install them. Change-Id: Idc40606ff9e7286aa66421cbbe05f94d7ce9f7e6 Signed-off-by: Stamatis Katsaounis --- .../assets/lib/jquery/src/.eslintrc.json | 5 - .../testapi-ui/assets/lib/jquery/src/ajax.js | 855 --------------------- .../testapi-ui/assets/lib/jquery/src/ajax/jsonp.js | 102 --- .../testapi-ui/assets/lib/jquery/src/ajax/load.js | 76 -- .../assets/lib/jquery/src/ajax/parseXML.js | 30 - .../assets/lib/jquery/src/ajax/script.js | 77 -- .../assets/lib/jquery/src/ajax/var/location.js | 5 - .../assets/lib/jquery/src/ajax/var/nonce.js | 7 - .../assets/lib/jquery/src/ajax/var/rquery.js | 5 - .../testapi-ui/assets/lib/jquery/src/ajax/xhr.js | 169 ---- .../testapi-ui/assets/lib/jquery/src/attributes.js | 13 - .../assets/lib/jquery/src/attributes/attr.js | 141 ---- .../assets/lib/jquery/src/attributes/classes.js | 174 ----- .../assets/lib/jquery/src/attributes/prop.js | 143 ---- .../assets/lib/jquery/src/attributes/support.js | 33 - .../assets/lib/jquery/src/attributes/val.js | 190 ----- .../testapi-ui/assets/lib/jquery/src/callbacks.js | 234 ------ .../testapi-ui/assets/lib/jquery/src/core.js | 476 ------------ .../assets/lib/jquery/src/core/DOMEval.js | 16 - .../assets/lib/jquery/src/core/access.js | 70 -- .../testapi-ui/assets/lib/jquery/src/core/init.js | 128 --- .../assets/lib/jquery/src/core/nodeName.js | 13 - .../assets/lib/jquery/src/core/parseHTML.js | 65 -- .../lib/jquery/src/core/ready-no-deferred.js | 96 --- .../testapi-ui/assets/lib/jquery/src/core/ready.js | 86 --- .../assets/lib/jquery/src/core/readyException.js | 13 - .../assets/lib/jquery/src/core/stripAndCollapse.js | 14 - .../assets/lib/jquery/src/core/support.js | 20 - .../assets/lib/jquery/src/core/var/rsingleTag.js | 6 - .../static/testapi-ui/assets/lib/jquery/src/css.js | 438 ----------- .../assets/lib/jquery/src/css/addGetHookIf.js | 26 - .../assets/lib/jquery/src/css/adjustCSS.js | 71 -- .../testapi-ui/assets/lib/jquery/src/css/curCSS.js | 65 -- .../lib/jquery/src/css/hiddenVisibleSelectors.js | 15 - .../assets/lib/jquery/src/css/showHide.js | 105 --- .../assets/lib/jquery/src/css/support.js | 89 --- .../assets/lib/jquery/src/css/var/cssExpand.js | 5 - .../assets/lib/jquery/src/css/var/getStyles.js | 17 - .../lib/jquery/src/css/var/isHiddenWithinTree.js | 34 - .../assets/lib/jquery/src/css/var/rmargin.js | 5 - .../assets/lib/jquery/src/css/var/rnumnonpx.js | 7 - .../assets/lib/jquery/src/css/var/swap.js | 26 - .../testapi-ui/assets/lib/jquery/src/data.js | 179 ----- .../testapi-ui/assets/lib/jquery/src/data/Data.js | 161 ---- .../assets/lib/jquery/src/data/var/acceptData.js | 19 - .../assets/lib/jquery/src/data/var/dataPriv.js | 7 - .../assets/lib/jquery/src/data/var/dataUser.js | 7 - .../testapi-ui/assets/lib/jquery/src/deferred.js | 391 ---------- .../lib/jquery/src/deferred/exceptionHook.js | 21 - .../testapi-ui/assets/lib/jquery/src/deprecated.js | 40 - .../testapi-ui/assets/lib/jquery/src/dimensions.js | 56 -- .../testapi-ui/assets/lib/jquery/src/effects.js | 699 ----------------- .../assets/lib/jquery/src/effects/Tween.js | 123 --- .../lib/jquery/src/effects/animatedSelector.js | 15 - .../testapi-ui/assets/lib/jquery/src/event.js | 746 ------------------ .../testapi-ui/assets/lib/jquery/src/event/ajax.js | 22 - .../assets/lib/jquery/src/event/alias.js | 29 - .../assets/lib/jquery/src/event/focusin.js | 55 -- .../assets/lib/jquery/src/event/support.js | 11 - .../assets/lib/jquery/src/event/trigger.js | 185 ----- .../assets/lib/jquery/src/exports/amd.js | 26 - .../assets/lib/jquery/src/exports/global.js | 34 - .../testapi-ui/assets/lib/jquery/src/jquery.js | 41 - .../testapi-ui/assets/lib/jquery/src/jquery.min.js | 4 - .../assets/lib/jquery/src/manipulation.js | 488 ------------ .../assets/lib/jquery/src/manipulation/_evalUrl.js | 23 - .../lib/jquery/src/manipulation/buildFragment.js | 104 --- .../assets/lib/jquery/src/manipulation/getAll.js | 32 - .../lib/jquery/src/manipulation/setGlobalEval.js | 22 - .../assets/lib/jquery/src/manipulation/support.js | 35 - .../jquery/src/manipulation/var/rcheckableType.js | 5 - .../lib/jquery/src/manipulation/var/rscriptType.js | 5 - .../lib/jquery/src/manipulation/var/rtagName.js | 5 - .../assets/lib/jquery/src/manipulation/wrapMap.js | 29 - .../testapi-ui/assets/lib/jquery/src/offset.js | 229 ------ .../testapi-ui/assets/lib/jquery/src/queue.js | 145 ---- .../assets/lib/jquery/src/queue/delay.js | 24 - .../assets/lib/jquery/src/selector-native.js | 237 ------ .../assets/lib/jquery/src/selector-sizzle.js | 19 - .../testapi-ui/assets/lib/jquery/src/selector.js | 3 - .../testapi-ui/assets/lib/jquery/src/serialize.js | 130 ---- .../testapi-ui/assets/lib/jquery/src/traversing.js | 191 ----- .../assets/lib/jquery/src/traversing/findFilter.js | 106 --- .../assets/lib/jquery/src/traversing/var/dir.js | 22 - .../lib/jquery/src/traversing/var/rneedsContext.js | 8 - .../lib/jquery/src/traversing/var/siblings.js | 17 - .../lib/jquery/src/var/ObjectFunctionString.js | 7 - .../testapi-ui/assets/lib/jquery/src/var/arr.js | 5 - .../assets/lib/jquery/src/var/class2type.js | 6 - .../testapi-ui/assets/lib/jquery/src/var/concat.js | 7 - .../assets/lib/jquery/src/var/document.js | 5 - .../assets/lib/jquery/src/var/documentElement.js | 7 - .../assets/lib/jquery/src/var/fnToString.js | 7 - .../assets/lib/jquery/src/var/getProto.js | 5 - .../testapi-ui/assets/lib/jquery/src/var/hasOwn.js | 7 - .../assets/lib/jquery/src/var/indexOf.js | 7 - .../testapi-ui/assets/lib/jquery/src/var/pnum.js | 5 - .../testapi-ui/assets/lib/jquery/src/var/push.js | 7 - .../assets/lib/jquery/src/var/rcssNum.js | 9 - .../assets/lib/jquery/src/var/rnothtmlwhite.js | 8 - .../testapi-ui/assets/lib/jquery/src/var/slice.js | 7 - .../assets/lib/jquery/src/var/support.js | 6 - .../assets/lib/jquery/src/var/toString.js | 7 - .../testapi-ui/assets/lib/jquery/src/wrap.js | 77 -- 104 files changed, 9104 deletions(-) delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/location.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/nonce.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/var/rquery.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/xhr.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/attr.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/classes.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/prop.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/attributes/val.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/callbacks.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/DOMEval.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/access.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/init.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/nodeName.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/parseHTML.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready-no-deferred.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/ready.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/readyException.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/stripAndCollapse.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/core/var/rsingleTag.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/addGetHookIf.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/adjustCSS.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/curCSS.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/hiddenVisibleSelectors.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/showHide.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/cssExpand.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/getStyles.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/isHiddenWithinTree.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/rmargin.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/rnumnonpx.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/css/var/swap.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/data.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/data/Data.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/acceptData.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/dataPriv.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/data/var/dataUser.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/deferred.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/deferred/exceptionHook.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/deprecated.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/dimensions.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/effects.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/effects/Tween.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/effects/animatedSelector.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event/ajax.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event/alias.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event/focusin.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/event/trigger.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/exports/amd.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/exports/global.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/jquery.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/jquery.min.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/_evalUrl.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/buildFragment.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/getAll.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/setGlobalEval.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rcheckableType.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rscriptType.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/var/rtagName.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/manipulation/wrapMap.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/offset.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/queue.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/queue/delay.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/selector-native.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/selector-sizzle.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/selector.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/serialize.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/findFilter.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/dir.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/rneedsContext.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/traversing/var/siblings.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/ObjectFunctionString.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/arr.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/class2type.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/concat.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/document.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/documentElement.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/fnToString.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/getProto.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/hasOwn.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/indexOf.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/pnum.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/push.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/rcssNum.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/rnothtmlwhite.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/slice.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/support.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/var/toString.js delete mode 100644 3rd_party/static/testapi-ui/assets/lib/jquery/src/wrap.js (limited to '3rd_party/static/testapi-ui/assets/lib/jquery/src') diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json b/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json deleted file mode 100644 index 3a4a3d2..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/.eslintrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "root": true, - - "extends": "../.eslintrc-browser.json" -} diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js deleted file mode 100644 index 36f707d..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax.js +++ /dev/null @@ -1,855 +0,0 @@ -define( [ - "./core", - "./var/document", - "./var/rnothtmlwhite", - "./ajax/var/location", - "./ajax/var/nonce", - "./ajax/var/rquery", - - "./core/init", - "./ajax/parseXML", - "./event/trigger", - "./deferred", - "./serialize" // jQuery.param -], function( jQuery, document, rnothtmlwhite, location, nonce, rquery ) { - -"use strict"; - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( jQuery.isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // 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, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; - } - } - match = responseHeaders[ key.toLowerCase() ]; - } - return match == null ? null : match; - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 13 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available, append data to url - if ( s.data ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( jQuery.isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - -return jQuery; -} ); diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js deleted file mode 100644 index 8c406e7..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/jsonp.js +++ /dev/null @@ -1,102 +0,0 @@ -define( [ - "../core", - "./var/nonce", - "./var/rquery", - "../ajax" -], function( jQuery, nonce, rquery ) { - -"use strict"; - -var oldCallbacks = [], - rjsonp = /(=)\?(?=&|$)|\?\?/; - -// Default jsonp settings -jQuery.ajaxSetup( { - jsonp: "callback", - jsonpCallback: function() { - var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); - this[ callback ] = true; - return callback; - } -} ); - -// Detect, normalize options and install callbacks for jsonp requests -jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { - - var callbackName, overwritten, responseContainer, - jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? - "url" : - typeof s.data === "string" && - ( s.contentType || "" ) - .indexOf( "application/x-www-form-urlencoded" ) === 0 && - rjsonp.test( s.data ) && "data" - ); - - // Handle iff the expected data type is "jsonp" or we have a parameter to set - if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { - - // Get callback name, remembering preexisting value associated with it - callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? - s.jsonpCallback() : - s.jsonpCallback; - - // Insert callback into url or form data - if ( jsonProp ) { - s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); - } else if ( s.jsonp !== false ) { - s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; - } - - // Use data converter to retrieve json after script execution - s.converters[ "script json" ] = function() { - if ( !responseContainer ) { - jQuery.error( callbackName + " was not called" ); - } - return responseContainer[ 0 ]; - }; - - // Force json dataType - s.dataTypes[ 0 ] = "json"; - - // Install callback - overwritten = window[ callbackName ]; - window[ callbackName ] = function() { - responseContainer = arguments; - }; - - // Clean-up function (fires after converters) - jqXHR.always( function() { - - // If previous value didn't exist - remove it - if ( overwritten === undefined ) { - jQuery( window ).removeProp( callbackName ); - - // Otherwise restore preexisting value - } else { - window[ callbackName ] = overwritten; - } - - // Save back as free - if ( s[ callbackName ] ) { - - // Make sure that re-using the options doesn't screw things around - s.jsonpCallback = originalSettings.jsonpCallback; - - // Save the callback name for future use - oldCallbacks.push( callbackName ); - } - - // Call if it was a function and we have a response - if ( responseContainer && jQuery.isFunction( overwritten ) ) { - overwritten( responseContainer[ 0 ] ); - } - - responseContainer = overwritten = undefined; - } ); - - // Delegate to script - return "script"; - } -} ); - -} ); diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js deleted file mode 100644 index 3ce3a5a..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/load.js +++ /dev/null @@ -1,76 +0,0 @@ -define( [ - "../core", - "../core/stripAndCollapse", - "../core/parseHTML", - "../ajax", - "../traversing", - "../manipulation", - "../selector" -], function( jQuery, stripAndCollapse ) { - -"use strict"; - -/** - * Load a url into a page - */ -jQuery.fn.load = function( url, params, callback ) { - var selector, type, response, - self = this, - off = url.indexOf( " " ); - - if ( off > -1 ) { - selector = stripAndCollapse( url.slice( off ) ); - url = url.slice( 0, off ); - } - - // If it's a function - if ( jQuery.isFunction( params ) ) { - - // We assume that it's the callback - callback = params; - params = undefined; - - // Otherwise, build a param string - } else if ( params && typeof params === "object" ) { - type = "POST"; - } - - // If we have elements to modify, make the request - if ( self.length > 0 ) { - jQuery.ajax( { - url: url, - - // If "type" variable is undefined, then "GET" method will be used. - // Make value of this field explicit since - // user can override it through ajaxSetup method - type: type || "GET", - dataType: "html", - data: params - } ).done( function( responseText ) { - - // Save response for use in complete callback - response = arguments; - - self.html( selector ? - - // If a selector was specified, locate the right elements in a dummy div - // Exclude scripts to avoid IE 'Permission Denied' errors - jQuery( "
" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : - - // Otherwise use the full result - responseText ); - - // If the request succeeds, this function gets "data", "status", "jqXHR" - // but they are ignored because response was set above. - // If it fails, this function gets "jqXHR", "status", "error" - } ).always( callback && function( jqXHR, status ) { - self.each( function() { - callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); - } ); - } ); - } - - return this; -}; - -} ); diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js deleted file mode 100644 index acf7ab2..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/parseXML.js +++ /dev/null @@ -1,30 +0,0 @@ -define( [ - "../core" -], function( jQuery ) { - -"use strict"; - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - -return jQuery.parseXML; - -} ); diff --git a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js b/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js deleted file mode 100644 index 6e0d21e..0000000 --- a/3rd_party/static/testapi-ui/assets/lib/jquery/src/ajax/script.js +++ /dev/null @@ -1,77 +0,0 @@ -define( [ - "../core", - "../var/document", - "../ajax" -], function( jQuery, document ) { - -"use strict"; - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain requests - if ( s.crossDomain ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( "