diff options
author | jaubourg <j@ubourg.net> | 2012-04-28 23:06:48 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-04-28 23:06:48 +0200 |
commit | a1e3122706de7c4a71cbeaff83e47c2e24f686d2 (patch) | |
tree | 899f2525d2c1a7c082dfd267e10be2628fcb86fb /src/deferred.js | |
parent | 13f4f5adc25543b8c243555fa5a9eb9682088168 (diff) | |
download | jquery-a1e3122706de7c4a71cbeaff83e47c2e24f686d2.tar.gz jquery-a1e3122706de7c4a71cbeaff83e47c2e24f686d2.zip |
Gains 1 more byte min/gz and reminds that isResolved and isRejected are deprecated in the comments.
Diffstat (limited to 'src/deferred.js')
-rw-r--r-- | src/deferred.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/deferred.js b/src/deferred.js index a6a3f4219..f509a9aca 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -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; } |