mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Gains 1 more byte min/gz and reminds that isResolved and isRejected are deprecated in the comments.
This commit is contained in:
parent
13f4f5adc2
commit
a1e3122706
@ -66,7 +66,7 @@ jQuery.extend({
|
|||||||
promise[ tuple[1] ] = list.add;
|
promise[ tuple[1] ] = list.add;
|
||||||
|
|
||||||
// Handle state
|
// Handle state
|
||||||
if ( i < 2 ) {
|
if ( stateString ) {
|
||||||
list.add(function() {
|
list.add(function() {
|
||||||
// state = [ resolved | rejected ]
|
// state = [ resolved | rejected ]
|
||||||
state = stateString;
|
state = stateString;
|
||||||
@ -74,7 +74,7 @@ jQuery.extend({
|
|||||||
// [ reject_list | resolve_list ].disable; progress_list.lock
|
// [ reject_list | resolve_list ].disable; progress_list.lock
|
||||||
}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
|
}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
|
||||||
|
|
||||||
// [ isResolved | isRejected ] = [ resolve_list | reject_list ].fired
|
// <DEPRECATED> [ isResolved | isRejected ] = [ resolve_list | reject_list ].fired
|
||||||
promise[ "isR" + stateString.substr( 1 ) ] = list.fired;
|
promise[ "isR" + stateString.substr( 1 ) ] = list.fired;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user