diff --git a/src/Libraries/jQuery/jQuery.Core/IDeferred.cs b/src/Libraries/jQuery/jQuery.Core/IDeferred.cs index 2485026a5..3ceaa454d 100644 --- a/src/Libraries/jQuery/jQuery.Core/IDeferred.cs +++ b/src/Libraries/jQuery/jQuery.Core/IDeferred.cs @@ -75,6 +75,16 @@ public interface IDeferred { /// true if it has been resolved; false otherwise. bool IsResolved(); + /// + /// Determine the current state of a Deferred object. + /// + /// + /// "pending": The Deferred object is not yet in a completed state (neither "rejected" nor "resolved"). + ///"resolved": The Deferred object is in the resolved state, meaning that either deferred.resolve() or deferred.resolveWith() has been called for the object and the doneCallbacks have been called (or are in the process of being called). + ///"rejected": The Deferred object is in the rejected state, meaning that either deferred.reject() or deferred.rejectWith() has been called for the object and the failCallbacks have been called (or are in the process of being called). + /// + string State(); + /// /// Filters or chains deffered objects. /// diff --git a/src/Libraries/jQuery/jQuery.Core/jQueryDeferred.cs b/src/Libraries/jQuery/jQuery.Core/jQueryDeferred.cs index d7695798c..05058fece 100644 --- a/src/Libraries/jQuery/jQuery.Core/jQueryDeferred.cs +++ b/src/Libraries/jQuery/jQuery.Core/jQueryDeferred.cs @@ -94,6 +94,19 @@ public bool IsResolved() { return false; } + /// + /// Determine the current state of a Deferred object. + /// + /// + /// "pending": The Deferred object is not yet in a completed state (neither "rejected" nor "resolved"). + ///"resolved": The Deferred object is in the resolved state, meaning that either deferred.resolve() or deferred.resolveWith() has been called for the object and the doneCallbacks have been called (or are in the process of being called). + ///"rejected": The Deferred object is in the rejected state, meaning that either deferred.reject() or deferred.rejectWith() has been called for the object and the failCallbacks have been called (or are in the process of being called). + /// + public string State() + { + return null; + } + /// /// Returns a deferred object that can be further composed. /// diff --git a/src/Libraries/jQuery/jQuery.Core/jQueryXmlHttpRequest.cs b/src/Libraries/jQuery/jQuery.Core/jQueryXmlHttpRequest.cs index 322622d44..52ad38d32 100644 --- a/src/Libraries/jQuery/jQuery.Core/jQueryXmlHttpRequest.cs +++ b/src/Libraries/jQuery/jQuery.Core/jQueryXmlHttpRequest.cs @@ -300,7 +300,13 @@ bool IDeferred.IsResolved() { return false; } - IDeferred IDeferred.Pipe(jQueryDeferredFilter successFilter) { + public string State() + { + return null; + } + + IDeferred IDeferred.Pipe(jQueryDeferredFilter successFilter) + { return null; }