Fix for #8421. Makes sure resolveWith can be called with only one parameter.
This commit is contained in:
parent
71bd828d9f
commit
c1279895f3
2 changed files with 13 additions and 5 deletions
|
@ -837,6 +837,8 @@ jQuery.extend({
|
|||
// resolve with given context and args
|
||||
resolveWith: function( context, args ) {
|
||||
if ( !cancelled && !fired && !firing ) {
|
||||
// make sure args are available (#8421)
|
||||
args = args || [];
|
||||
firing = 1;
|
||||
try {
|
||||
while( callbacks[ 0 ] ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue