Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
memory = false;
[3500] Fix | Delete
}
[3501] Fix | Delete
}
[3502] Fix | Delete
}
[3503] Fix | Delete
[3504] Fix | Delete
// Forget the data if we're done with it
[3505] Fix | Delete
if ( !options.memory ) {
[3506] Fix | Delete
memory = false;
[3507] Fix | Delete
}
[3508] Fix | Delete
[3509] Fix | Delete
firing = false;
[3510] Fix | Delete
[3511] Fix | Delete
// Clean up if we're done firing for good
[3512] Fix | Delete
if ( locked ) {
[3513] Fix | Delete
[3514] Fix | Delete
// Keep an empty list if we have data for future add calls
[3515] Fix | Delete
if ( memory ) {
[3516] Fix | Delete
list = [];
[3517] Fix | Delete
[3518] Fix | Delete
// Otherwise, this object is spent
[3519] Fix | Delete
} else {
[3520] Fix | Delete
list = "";
[3521] Fix | Delete
}
[3522] Fix | Delete
}
[3523] Fix | Delete
},
[3524] Fix | Delete
[3525] Fix | Delete
// Actual Callbacks object
[3526] Fix | Delete
self = {
[3527] Fix | Delete
[3528] Fix | Delete
// Add a callback or a collection of callbacks to the list
[3529] Fix | Delete
add: function() {
[3530] Fix | Delete
if ( list ) {
[3531] Fix | Delete
[3532] Fix | Delete
// If we have memory from a past run, we should fire after adding
[3533] Fix | Delete
if ( memory && !firing ) {
[3534] Fix | Delete
firingIndex = list.length - 1;
[3535] Fix | Delete
queue.push( memory );
[3536] Fix | Delete
}
[3537] Fix | Delete
[3538] Fix | Delete
( function add( args ) {
[3539] Fix | Delete
jQuery.each( args, function( _, arg ) {
[3540] Fix | Delete
if ( isFunction( arg ) ) {
[3541] Fix | Delete
if ( !options.unique || !self.has( arg ) ) {
[3542] Fix | Delete
list.push( arg );
[3543] Fix | Delete
}
[3544] Fix | Delete
} else if ( arg && arg.length && toType( arg ) !== "string" ) {
[3545] Fix | Delete
[3546] Fix | Delete
// Inspect recursively
[3547] Fix | Delete
add( arg );
[3548] Fix | Delete
}
[3549] Fix | Delete
} );
[3550] Fix | Delete
} )( arguments );
[3551] Fix | Delete
[3552] Fix | Delete
if ( memory && !firing ) {
[3553] Fix | Delete
fire();
[3554] Fix | Delete
}
[3555] Fix | Delete
}
[3556] Fix | Delete
return this;
[3557] Fix | Delete
},
[3558] Fix | Delete
[3559] Fix | Delete
// Remove a callback from the list
[3560] Fix | Delete
remove: function() {
[3561] Fix | Delete
jQuery.each( arguments, function( _, arg ) {
[3562] Fix | Delete
var index;
[3563] Fix | Delete
while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
[3564] Fix | Delete
list.splice( index, 1 );
[3565] Fix | Delete
[3566] Fix | Delete
// Handle firing indexes
[3567] Fix | Delete
if ( index <= firingIndex ) {
[3568] Fix | Delete
firingIndex--;
[3569] Fix | Delete
}
[3570] Fix | Delete
}
[3571] Fix | Delete
} );
[3572] Fix | Delete
return this;
[3573] Fix | Delete
},
[3574] Fix | Delete
[3575] Fix | Delete
// Check if a given callback is in the list.
[3576] Fix | Delete
// If no argument is given, return whether or not list has callbacks attached.
[3577] Fix | Delete
has: function( fn ) {
[3578] Fix | Delete
return fn ?
[3579] Fix | Delete
jQuery.inArray( fn, list ) > -1 :
[3580] Fix | Delete
list.length > 0;
[3581] Fix | Delete
},
[3582] Fix | Delete
[3583] Fix | Delete
// Remove all callbacks from the list
[3584] Fix | Delete
empty: function() {
[3585] Fix | Delete
if ( list ) {
[3586] Fix | Delete
list = [];
[3587] Fix | Delete
}
[3588] Fix | Delete
return this;
[3589] Fix | Delete
},
[3590] Fix | Delete
[3591] Fix | Delete
// Disable .fire and .add
[3592] Fix | Delete
// Abort any current/pending executions
[3593] Fix | Delete
// Clear all callbacks and values
[3594] Fix | Delete
disable: function() {
[3595] Fix | Delete
locked = queue = [];
[3596] Fix | Delete
list = memory = "";
[3597] Fix | Delete
return this;
[3598] Fix | Delete
},
[3599] Fix | Delete
disabled: function() {
[3600] Fix | Delete
return !list;
[3601] Fix | Delete
},
[3602] Fix | Delete
[3603] Fix | Delete
// Disable .fire
[3604] Fix | Delete
// Also disable .add unless we have memory (since it would have no effect)
[3605] Fix | Delete
// Abort any pending executions
[3606] Fix | Delete
lock: function() {
[3607] Fix | Delete
locked = queue = [];
[3608] Fix | Delete
if ( !memory && !firing ) {
[3609] Fix | Delete
list = memory = "";
[3610] Fix | Delete
}
[3611] Fix | Delete
return this;
[3612] Fix | Delete
},
[3613] Fix | Delete
locked: function() {
[3614] Fix | Delete
return !!locked;
[3615] Fix | Delete
},
[3616] Fix | Delete
[3617] Fix | Delete
// Call all callbacks with the given context and arguments
[3618] Fix | Delete
fireWith: function( context, args ) {
[3619] Fix | Delete
if ( !locked ) {
[3620] Fix | Delete
args = args || [];
[3621] Fix | Delete
args = [ context, args.slice ? args.slice() : args ];
[3622] Fix | Delete
queue.push( args );
[3623] Fix | Delete
if ( !firing ) {
[3624] Fix | Delete
fire();
[3625] Fix | Delete
}
[3626] Fix | Delete
}
[3627] Fix | Delete
return this;
[3628] Fix | Delete
},
[3629] Fix | Delete
[3630] Fix | Delete
// Call all the callbacks with the given arguments
[3631] Fix | Delete
fire: function() {
[3632] Fix | Delete
self.fireWith( this, arguments );
[3633] Fix | Delete
return this;
[3634] Fix | Delete
},
[3635] Fix | Delete
[3636] Fix | Delete
// To know if the callbacks have already been called at least once
[3637] Fix | Delete
fired: function() {
[3638] Fix | Delete
return !!fired;
[3639] Fix | Delete
}
[3640] Fix | Delete
};
[3641] Fix | Delete
[3642] Fix | Delete
return self;
[3643] Fix | Delete
};
[3644] Fix | Delete
[3645] Fix | Delete
[3646] Fix | Delete
function Identity( v ) {
[3647] Fix | Delete
return v;
[3648] Fix | Delete
}
[3649] Fix | Delete
function Thrower( ex ) {
[3650] Fix | Delete
throw ex;
[3651] Fix | Delete
}
[3652] Fix | Delete
[3653] Fix | Delete
function adoptValue( value, resolve, reject, noValue ) {
[3654] Fix | Delete
var method;
[3655] Fix | Delete
[3656] Fix | Delete
try {
[3657] Fix | Delete
[3658] Fix | Delete
// Check for promise aspect first to privilege synchronous behavior
[3659] Fix | Delete
if ( value && isFunction( ( method = value.promise ) ) ) {
[3660] Fix | Delete
method.call( value ).done( resolve ).fail( reject );
[3661] Fix | Delete
[3662] Fix | Delete
// Other thenables
[3663] Fix | Delete
} else if ( value && isFunction( ( method = value.then ) ) ) {
[3664] Fix | Delete
method.call( value, resolve, reject );
[3665] Fix | Delete
[3666] Fix | Delete
// Other non-thenables
[3667] Fix | Delete
} else {
[3668] Fix | Delete
[3669] Fix | Delete
// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
[3670] Fix | Delete
// * false: [ value ].slice( 0 ) => resolve( value )
[3671] Fix | Delete
// * true: [ value ].slice( 1 ) => resolve()
[3672] Fix | Delete
resolve.apply( undefined, [ value ].slice( noValue ) );
[3673] Fix | Delete
}
[3674] Fix | Delete
[3675] Fix | Delete
// For Promises/A+, convert exceptions into rejections
[3676] Fix | Delete
// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
[3677] Fix | Delete
// Deferred#then to conditionally suppress rejection.
[3678] Fix | Delete
} catch ( value ) {
[3679] Fix | Delete
[3680] Fix | Delete
// Support: Android 4.0 only
[3681] Fix | Delete
// Strict mode functions invoked without .call/.apply get global-object context
[3682] Fix | Delete
reject.apply( undefined, [ value ] );
[3683] Fix | Delete
}
[3684] Fix | Delete
}
[3685] Fix | Delete
[3686] Fix | Delete
jQuery.extend( {
[3687] Fix | Delete
[3688] Fix | Delete
Deferred: function( func ) {
[3689] Fix | Delete
var tuples = [
[3690] Fix | Delete
[3691] Fix | Delete
// action, add listener, callbacks,
[3692] Fix | Delete
// ... .then handlers, argument index, [final state]
[3693] Fix | Delete
[ "notify", "progress", jQuery.Callbacks( "memory" ),
[3694] Fix | Delete
jQuery.Callbacks( "memory" ), 2 ],
[3695] Fix | Delete
[ "resolve", "done", jQuery.Callbacks( "once memory" ),
[3696] Fix | Delete
jQuery.Callbacks( "once memory" ), 0, "resolved" ],
[3697] Fix | Delete
[ "reject", "fail", jQuery.Callbacks( "once memory" ),
[3698] Fix | Delete
jQuery.Callbacks( "once memory" ), 1, "rejected" ]
[3699] Fix | Delete
],
[3700] Fix | Delete
state = "pending",
[3701] Fix | Delete
promise = {
[3702] Fix | Delete
state: function() {
[3703] Fix | Delete
return state;
[3704] Fix | Delete
},
[3705] Fix | Delete
always: function() {
[3706] Fix | Delete
deferred.done( arguments ).fail( arguments );
[3707] Fix | Delete
return this;
[3708] Fix | Delete
},
[3709] Fix | Delete
"catch": function( fn ) {
[3710] Fix | Delete
return promise.then( null, fn );
[3711] Fix | Delete
},
[3712] Fix | Delete
[3713] Fix | Delete
// Keep pipe for back-compat
[3714] Fix | Delete
pipe: function( /* fnDone, fnFail, fnProgress */ ) {
[3715] Fix | Delete
var fns = arguments;
[3716] Fix | Delete
[3717] Fix | Delete
return jQuery.Deferred( function( newDefer ) {
[3718] Fix | Delete
jQuery.each( tuples, function( _i, tuple ) {
[3719] Fix | Delete
[3720] Fix | Delete
// Map tuples (progress, done, fail) to arguments (done, fail, progress)
[3721] Fix | Delete
var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
[3722] Fix | Delete
[3723] Fix | Delete
// deferred.progress(function() { bind to newDefer or newDefer.notify })
[3724] Fix | Delete
// deferred.done(function() { bind to newDefer or newDefer.resolve })
[3725] Fix | Delete
// deferred.fail(function() { bind to newDefer or newDefer.reject })
[3726] Fix | Delete
deferred[ tuple[ 1 ] ]( function() {
[3727] Fix | Delete
var returned = fn && fn.apply( this, arguments );
[3728] Fix | Delete
if ( returned && isFunction( returned.promise ) ) {
[3729] Fix | Delete
returned.promise()
[3730] Fix | Delete
.progress( newDefer.notify )
[3731] Fix | Delete
.done( newDefer.resolve )
[3732] Fix | Delete
.fail( newDefer.reject );
[3733] Fix | Delete
} else {
[3734] Fix | Delete
newDefer[ tuple[ 0 ] + "With" ](
[3735] Fix | Delete
this,
[3736] Fix | Delete
fn ? [ returned ] : arguments
[3737] Fix | Delete
);
[3738] Fix | Delete
}
[3739] Fix | Delete
} );
[3740] Fix | Delete
} );
[3741] Fix | Delete
fns = null;
[3742] Fix | Delete
} ).promise();
[3743] Fix | Delete
},
[3744] Fix | Delete
then: function( onFulfilled, onRejected, onProgress ) {
[3745] Fix | Delete
var maxDepth = 0;
[3746] Fix | Delete
function resolve( depth, deferred, handler, special ) {
[3747] Fix | Delete
return function() {
[3748] Fix | Delete
var that = this,
[3749] Fix | Delete
args = arguments,
[3750] Fix | Delete
mightThrow = function() {
[3751] Fix | Delete
var returned, then;
[3752] Fix | Delete
[3753] Fix | Delete
// Support: Promises/A+ section 2.3.3.3.3
[3754] Fix | Delete
// https://promisesaplus.com/#point-59
[3755] Fix | Delete
// Ignore double-resolution attempts
[3756] Fix | Delete
if ( depth < maxDepth ) {
[3757] Fix | Delete
return;
[3758] Fix | Delete
}
[3759] Fix | Delete
[3760] Fix | Delete
returned = handler.apply( that, args );
[3761] Fix | Delete
[3762] Fix | Delete
// Support: Promises/A+ section 2.3.1
[3763] Fix | Delete
// https://promisesaplus.com/#point-48
[3764] Fix | Delete
if ( returned === deferred.promise() ) {
[3765] Fix | Delete
throw new TypeError( "Thenable self-resolution" );
[3766] Fix | Delete
}
[3767] Fix | Delete
[3768] Fix | Delete
// Support: Promises/A+ sections 2.3.3.1, 3.5
[3769] Fix | Delete
// https://promisesaplus.com/#point-54
[3770] Fix | Delete
// https://promisesaplus.com/#point-75
[3771] Fix | Delete
// Retrieve `then` only once
[3772] Fix | Delete
then = returned &&
[3773] Fix | Delete
[3774] Fix | Delete
// Support: Promises/A+ section 2.3.4
[3775] Fix | Delete
// https://promisesaplus.com/#point-64
[3776] Fix | Delete
// Only check objects and functions for thenability
[3777] Fix | Delete
( typeof returned === "object" ||
[3778] Fix | Delete
typeof returned === "function" ) &&
[3779] Fix | Delete
returned.then;
[3780] Fix | Delete
[3781] Fix | Delete
// Handle a returned thenable
[3782] Fix | Delete
if ( isFunction( then ) ) {
[3783] Fix | Delete
[3784] Fix | Delete
// Special processors (notify) just wait for resolution
[3785] Fix | Delete
if ( special ) {
[3786] Fix | Delete
then.call(
[3787] Fix | Delete
returned,
[3788] Fix | Delete
resolve( maxDepth, deferred, Identity, special ),
[3789] Fix | Delete
resolve( maxDepth, deferred, Thrower, special )
[3790] Fix | Delete
);
[3791] Fix | Delete
[3792] Fix | Delete
// Normal processors (resolve) also hook into progress
[3793] Fix | Delete
} else {
[3794] Fix | Delete
[3795] Fix | Delete
// ...and disregard older resolution values
[3796] Fix | Delete
maxDepth++;
[3797] Fix | Delete
[3798] Fix | Delete
then.call(
[3799] Fix | Delete
returned,
[3800] Fix | Delete
resolve( maxDepth, deferred, Identity, special ),
[3801] Fix | Delete
resolve( maxDepth, deferred, Thrower, special ),
[3802] Fix | Delete
resolve( maxDepth, deferred, Identity,
[3803] Fix | Delete
deferred.notifyWith )
[3804] Fix | Delete
);
[3805] Fix | Delete
}
[3806] Fix | Delete
[3807] Fix | Delete
// Handle all other returned values
[3808] Fix | Delete
} else {
[3809] Fix | Delete
[3810] Fix | Delete
// Only substitute handlers pass on context
[3811] Fix | Delete
// and multiple values (non-spec behavior)
[3812] Fix | Delete
if ( handler !== Identity ) {
[3813] Fix | Delete
that = undefined;
[3814] Fix | Delete
args = [ returned ];
[3815] Fix | Delete
}
[3816] Fix | Delete
[3817] Fix | Delete
// Process the value(s)
[3818] Fix | Delete
// Default process is resolve
[3819] Fix | Delete
( special || deferred.resolveWith )( that, args );
[3820] Fix | Delete
}
[3821] Fix | Delete
},
[3822] Fix | Delete
[3823] Fix | Delete
// Only normal processors (resolve) catch and reject exceptions
[3824] Fix | Delete
process = special ?
[3825] Fix | Delete
mightThrow :
[3826] Fix | Delete
function() {
[3827] Fix | Delete
try {
[3828] Fix | Delete
mightThrow();
[3829] Fix | Delete
} catch ( e ) {
[3830] Fix | Delete
[3831] Fix | Delete
if ( jQuery.Deferred.exceptionHook ) {
[3832] Fix | Delete
jQuery.Deferred.exceptionHook( e,
[3833] Fix | Delete
process.stackTrace );
[3834] Fix | Delete
}
[3835] Fix | Delete
[3836] Fix | Delete
// Support: Promises/A+ section 2.3.3.3.4.1
[3837] Fix | Delete
// https://promisesaplus.com/#point-61
[3838] Fix | Delete
// Ignore post-resolution exceptions
[3839] Fix | Delete
if ( depth + 1 >= maxDepth ) {
[3840] Fix | Delete
[3841] Fix | Delete
// Only substitute handlers pass on context
[3842] Fix | Delete
// and multiple values (non-spec behavior)
[3843] Fix | Delete
if ( handler !== Thrower ) {
[3844] Fix | Delete
that = undefined;
[3845] Fix | Delete
args = [ e ];
[3846] Fix | Delete
}
[3847] Fix | Delete
[3848] Fix | Delete
deferred.rejectWith( that, args );
[3849] Fix | Delete
}
[3850] Fix | Delete
}
[3851] Fix | Delete
};
[3852] Fix | Delete
[3853] Fix | Delete
// Support: Promises/A+ section 2.3.3.3.1
[3854] Fix | Delete
// https://promisesaplus.com/#point-57
[3855] Fix | Delete
// Re-resolve promises immediately to dodge false rejection from
[3856] Fix | Delete
// subsequent errors
[3857] Fix | Delete
if ( depth ) {
[3858] Fix | Delete
process();
[3859] Fix | Delete
} else {
[3860] Fix | Delete
[3861] Fix | Delete
// Call an optional hook to record the stack, in case of exception
[3862] Fix | Delete
// since it's otherwise lost when execution goes async
[3863] Fix | Delete
if ( jQuery.Deferred.getStackHook ) {
[3864] Fix | Delete
process.stackTrace = jQuery.Deferred.getStackHook();
[3865] Fix | Delete
}
[3866] Fix | Delete
window.setTimeout( process );
[3867] Fix | Delete
}
[3868] Fix | Delete
};
[3869] Fix | Delete
}
[3870] Fix | Delete
[3871] Fix | Delete
return jQuery.Deferred( function( newDefer ) {
[3872] Fix | Delete
[3873] Fix | Delete
// progress_handlers.add( ... )
[3874] Fix | Delete
tuples[ 0 ][ 3 ].add(
[3875] Fix | Delete
resolve(
[3876] Fix | Delete
0,
[3877] Fix | Delete
newDefer,
[3878] Fix | Delete
isFunction( onProgress ) ?
[3879] Fix | Delete
onProgress :
[3880] Fix | Delete
Identity,
[3881] Fix | Delete
newDefer.notifyWith
[3882] Fix | Delete
)
[3883] Fix | Delete
);
[3884] Fix | Delete
[3885] Fix | Delete
// fulfilled_handlers.add( ... )
[3886] Fix | Delete
tuples[ 1 ][ 3 ].add(
[3887] Fix | Delete
resolve(
[3888] Fix | Delete
0,
[3889] Fix | Delete
newDefer,
[3890] Fix | Delete
isFunction( onFulfilled ) ?
[3891] Fix | Delete
onFulfilled :
[3892] Fix | Delete
Identity
[3893] Fix | Delete
)
[3894] Fix | Delete
);
[3895] Fix | Delete
[3896] Fix | Delete
// rejected_handlers.add( ... )
[3897] Fix | Delete
tuples[ 2 ][ 3 ].add(
[3898] Fix | Delete
resolve(
[3899] Fix | Delete
0,
[3900] Fix | Delete
newDefer,
[3901] Fix | Delete
isFunction( onRejected ) ?
[3902] Fix | Delete
onRejected :
[3903] Fix | Delete
Thrower
[3904] Fix | Delete
)
[3905] Fix | Delete
);
[3906] Fix | Delete
} ).promise();
[3907] Fix | Delete
},
[3908] Fix | Delete
[3909] Fix | Delete
// Get a promise for this deferred
[3910] Fix | Delete
// If obj is provided, the promise aspect is added to the object
[3911] Fix | Delete
promise: function( obj ) {
[3912] Fix | Delete
return obj != null ? jQuery.extend( obj, promise ) : promise;
[3913] Fix | Delete
}
[3914] Fix | Delete
},
[3915] Fix | Delete
deferred = {};
[3916] Fix | Delete
[3917] Fix | Delete
// Add list-specific methods
[3918] Fix | Delete
jQuery.each( tuples, function( i, tuple ) {
[3919] Fix | Delete
var list = tuple[ 2 ],
[3920] Fix | Delete
stateString = tuple[ 5 ];
[3921] Fix | Delete
[3922] Fix | Delete
// promise.progress = list.add
[3923] Fix | Delete
// promise.done = list.add
[3924] Fix | Delete
// promise.fail = list.add
[3925] Fix | Delete
promise[ tuple[ 1 ] ] = list.add;
[3926] Fix | Delete
[3927] Fix | Delete
// Handle state
[3928] Fix | Delete
if ( stateString ) {
[3929] Fix | Delete
list.add(
[3930] Fix | Delete
function() {
[3931] Fix | Delete
[3932] Fix | Delete
// state = "resolved" (i.e., fulfilled)
[3933] Fix | Delete
// state = "rejected"
[3934] Fix | Delete
state = stateString;
[3935] Fix | Delete
},
[3936] Fix | Delete
[3937] Fix | Delete
// rejected_callbacks.disable
[3938] Fix | Delete
// fulfilled_callbacks.disable
[3939] Fix | Delete
tuples[ 3 - i ][ 2 ].disable,
[3940] Fix | Delete
[3941] Fix | Delete
// rejected_handlers.disable
[3942] Fix | Delete
// fulfilled_handlers.disable
[3943] Fix | Delete
tuples[ 3 - i ][ 3 ].disable,
[3944] Fix | Delete
[3945] Fix | Delete
// progress_callbacks.lock
[3946] Fix | Delete
tuples[ 0 ][ 2 ].lock,
[3947] Fix | Delete
[3948] Fix | Delete
// progress_handlers.lock
[3949] Fix | Delete
tuples[ 0 ][ 3 ].lock
[3950] Fix | Delete
);
[3951] Fix | Delete
}
[3952] Fix | Delete
[3953] Fix | Delete
// progress_handlers.fire
[3954] Fix | Delete
// fulfilled_handlers.fire
[3955] Fix | Delete
// rejected_handlers.fire
[3956] Fix | Delete
list.add( tuple[ 3 ].fire );
[3957] Fix | Delete
[3958] Fix | Delete
// deferred.notify = function() { deferred.notifyWith(...) }
[3959] Fix | Delete
// deferred.resolve = function() { deferred.resolveWith(...) }
[3960] Fix | Delete
// deferred.reject = function() { deferred.rejectWith(...) }
[3961] Fix | Delete
deferred[ tuple[ 0 ] ] = function() {
[3962] Fix | Delete
deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
[3963] Fix | Delete
return this;
[3964] Fix | Delete
};
[3965] Fix | Delete
[3966] Fix | Delete
// deferred.notifyWith = list.fireWith
[3967] Fix | Delete
// deferred.resolveWith = list.fireWith
[3968] Fix | Delete
// deferred.rejectWith = list.fireWith
[3969] Fix | Delete
deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
[3970] Fix | Delete
} );
[3971] Fix | Delete
[3972] Fix | Delete
// Make the deferred a promise
[3973] Fix | Delete
promise.promise( deferred );
[3974] Fix | Delete
[3975] Fix | Delete
// Call given func if any
[3976] Fix | Delete
if ( func ) {
[3977] Fix | Delete
func.call( deferred, deferred );
[3978] Fix | Delete
}
[3979] Fix | Delete
[3980] Fix | Delete
// All done!
[3981] Fix | Delete
return deferred;
[3982] Fix | Delete
},
[3983] Fix | Delete
[3984] Fix | Delete
// Deferred helper
[3985] Fix | Delete
when: function( singleValue ) {
[3986] Fix | Delete
var
[3987] Fix | Delete
[3988] Fix | Delete
// count of uncompleted subordinates
[3989] Fix | Delete
remaining = arguments.length,
[3990] Fix | Delete
[3991] Fix | Delete
// count of unprocessed arguments
[3992] Fix | Delete
i = remaining,
[3993] Fix | Delete
[3994] Fix | Delete
// subordinate fulfillment data
[3995] Fix | Delete
resolveContexts = Array( i ),
[3996] Fix | Delete
resolveValues = slice.call( arguments ),
[3997] Fix | Delete
[3998] Fix | Delete
// the master Deferred
[3999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function