Skip to content
Permalink
Browse files

Gains 1 more byte min/gz and reminds that isResolved and isRejected a…

…re deprecated in the comments.
  • Loading branch information...
jaubourg committed Apr 28, 2012
1 parent 13f4f5a commit a1e3122706de7c4a71cbeaff83e47c2e24f686d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/deferred.js
@@ -66,15 +66,15 @@ jQuery.extend({
promise[ tuple[1] ] = list.add;

// Handle state
if ( i < 2 ) {
if ( stateString ) {
list.add(function() {
// state = [ resolved | rejected ]
state = stateString;

// [ 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;
}

0 comments on commit a1e3122

Please sign in to comment.
You can’t perform that action at this time.