diff --git a/src/deferred.js b/src/deferred.js index f509a9aca..a06fe2193 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -73,9 +73,6 @@ 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 - promise[ "isR" + stateString.substr( 1 ) ] = list.fired; } // deferred[ resolve | reject | notify ] = list.fire diff --git a/test/unit/deferred.js b/test/unit/deferred.js index 7ff274d56..710d221f0 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -8,7 +8,7 @@ jQuery.each( [ "", " - new operator" ], function( _, withNew ) { test("jQuery.Deferred" + withNew, function() { - expect( 23 ); + expect( 21 ); var defer = createDeferred(); @@ -16,7 +16,6 @@ jQuery.each( [ "", " - new operator" ], function( _, withNew ) { createDeferred().resolve().done(function() { ok( true , "Success on resolve" ); - ok( this.isResolved(), "Deferred is resolved" ); strictEqual( this.state(), "resolved", "Deferred is resolved (state)" ); }).fail(function() { ok( false , "Error on resolve" ); @@ -28,7 +27,6 @@ jQuery.each( [ "", " - new operator" ], function( _, withNew ) { ok( false , "Success on reject" ); }).fail(function() { ok( true , "Error on reject" ); - ok( this.isRejected(), "Deferred is rejected" ); strictEqual( this.state(), "rejected", "Deferred is rejected (state)" ); }).always(function() { ok( true , "Always callback on reject" );