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

Function inspect

static/wangEditor/js/lib/jquery-2.2.1.js:8064–8080  ·  view source on GitHub ↗
( dataType )

Source from the content-addressed store, hash-verified

8062 seekingTransport = ( structure === transports );
8063
8064 function inspect( dataType ) {
8065 var selected;
8066 inspected[ dataType ] = true;
8067 jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
8068 var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
8069 if ( typeof dataTypeOrTransport === "string" &&
8070 !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
8071
8072 options.dataTypes.unshift( dataTypeOrTransport );
8073 inspect( dataTypeOrTransport );
8074 return false;
8075 } else if ( seekingTransport ) {
8076 return !( selected = dataTypeOrTransport );
8077 }
8078 } );
8079 return selected;
8080 }
8081
8082 return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
8083}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected