@@ -102,7 +102,7 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX
102102 inspected [ dataType ] = true ;
103103 jQuery . each ( structure [ dataType ] || [ ] , function ( _ , prefilterOrFactory ) {
104104 var dataTypeOrTransport = prefilterOrFactory ( options , originalOptions , jqXHR ) ;
105- if ( typeof dataTypeOrTransport === "string" && ! seekingTransport && ! inspected [ dataTypeOrTransport ] ) {
105+ if ( typeof dataTypeOrTransport === "string" && ! seekingTransport && ! inspected [ dataTypeOrTransport ] ) {
106106 options . dataTypes . unshift ( dataTypeOrTransport ) ;
107107 inspect ( dataTypeOrTransport ) ;
108108 return false ;
@@ -146,7 +146,7 @@ function ajaxHandleResponses( s, jqXHR, responses ) {
146146 dataTypes = s . dataTypes ;
147147
148148 // Remove auto dataType and get content-type in the process
149- while ( dataTypes [ 0 ] === "*" ) {
149+ while ( dataTypes [ 0 ] === "*" ) {
150150 dataTypes . shift ( ) ;
151151 if ( ct === undefined ) {
152152 ct = s . mimeType || jqXHR . getResponseHeader ( "Content-Type" ) ;
@@ -510,7 +510,7 @@ jQuery.extend({
510510 s . type = options . method || options . type || s . method || s . type ;
511511
512512 // Extract dataTypes list
513- s . dataTypes = jQuery . trim ( s . dataType || "*" ) . toLowerCase ( ) . match ( rnotwhite ) || [ "" ] ;
513+ s . dataTypes = jQuery . trim ( s . dataType || "*" ) . toLowerCase ( ) . match ( rnotwhite ) || [ "" ] ;
514514
515515 // A cross-domain request is in order when we have a protocol:host:port mismatch
516516 if ( s . crossDomain == null ) {
@@ -796,8 +796,8 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
796796} ) ;
797797
798798// Attach a bunch of functions for handling common AJAX events
799- jQuery . each ( [ "ajaxStart" , "ajaxStop" , "ajaxComplete" , "ajaxError" , "ajaxSuccess" , "ajaxSend" ] , function ( i , type ) {
800- jQuery . fn [ type ] = function ( fn ) {
799+ jQuery . each ( [ "ajaxStart" , "ajaxStop" , "ajaxComplete" , "ajaxError" , "ajaxSuccess" , "ajaxSend" ] , function ( i , type ) {
800+ jQuery . fn [ type ] = function ( fn ) {
801801 return this . on ( type , fn ) ;
802802 } ;
803803} ) ;
0 commit comments