Gains 1 more byte min/gz and reminds that isResolved and isRejected are deprecated in the comments.

This commit is contained in:
jaubourg 2012-04-28 23:06:48 +02:00
parent 13f4f5adc2
commit a1e3122706

View File

@ -66,7 +66,7 @@ jQuery.extend({
promise[ tuple[1] ] = list.add;
// Handle state
if ( i < 2 ) {
if ( stateString ) {
list.add(function() {
// state = [ resolved | rejected ]
state = stateString;
@ -74,7 +74,7 @@ jQuery.extend({
// [ reject_list | resolve_list ].disable; progress_list.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;
}