MCPcopy Create free account
hub / github.com/TruthHun/BookStack / inspect

Function inspect

static/jquery/1.12.4/jquery.js:9154–9170  ·  view source on GitHub ↗
( dataType )

Source from the content-addressed store, hash-verified

9152 seekingTransport = ( structure === transports );
9153
9154 function inspect( dataType ) {
9155 var selected;
9156 inspected[ dataType ] = true;
9157 jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
9158 var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
9159 if ( typeof dataTypeOrTransport === "string" &&
9160 !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
9161
9162 options.dataTypes.unshift( dataTypeOrTransport );
9163 inspect( dataTypeOrTransport );
9164 return false;
9165 } else if ( seekingTransport ) {
9166 return !( selected = dataTypeOrTransport );
9167 }
9168 } );
9169 return selected;
9170 }
9171
9172 return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
9173}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected