Actually does what bab8079593
promised: passes the jXHR as the third argument of prefilters and transport factories. Comitted for completness even if if backs this out in the end and only land in 1.5.1.
This commit is contained in:
parent
bab8079593
commit
7d75ea950e
|
@ -88,7 +88,7 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jXH
|
||||||
selection;
|
selection;
|
||||||
|
|
||||||
for(; i < length && ( executeOnly || !selection ); i++ ) {
|
for(; i < length && ( executeOnly || !selection ); i++ ) {
|
||||||
selection = list[ i ]( options, originalOptions );
|
selection = list[ i ]( options, originalOptions, jXHR );
|
||||||
// If we got redirected to another dataType
|
// If we got redirected to another dataType
|
||||||
// we try there if not done already
|
// we try there if not done already
|
||||||
if ( typeof selection === "string" ) {
|
if ( typeof selection === "string" ) {
|
||||||
|
|
Loading…
Reference in a new issue