mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Deferred: Provide explicit undefined context for jQuery.when raw casts
Fixes gh-3082 Closes gh-3084
This commit is contained in:
parent
9f268caaf4
commit
7f1e59343b
@ -354,7 +354,10 @@ jQuery.extend( {
|
|||||||
master.reject
|
master.reject
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
updateFunc( i )( resolveValues[ i ] );
|
|
||||||
|
// Support: Android 4.0 only
|
||||||
|
// Strict mode functions invoked without .call/.apply get global-object context
|
||||||
|
updateFunc( i ).call( undefined, resolveValues[ i ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -843,7 +843,10 @@ QUnit.test( "jQuery.when - joined", function( assert ) {
|
|||||||
rejectedStandardPromise: true
|
rejectedStandardPromise: true
|
||||||
},
|
},
|
||||||
counter = 49,
|
counter = 49,
|
||||||
expectedContext = (function() { "use strict"; return this; })();
|
|
||||||
|
// Support: Android 4.0 only
|
||||||
|
// Strict mode functions invoked without .call/.apply get global-object context
|
||||||
|
expectedContext = (function() { "use strict"; return this; }).call();
|
||||||
|
|
||||||
QUnit.stop();
|
QUnit.stop();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user