diff options
author | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
---|---|---|
committer | Barak Korren <[email protected]> | 2013-04-02 20:38:07 +0300 |
commit | 58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch) | |
tree | 523d814ea0b7b6f617fe515b186099c6e83fed72 /lib/dojo/promise/Promise.js.uncompressed.js | |
parent | e470a273cf09562fb2f9c0c899002303f19c8d16 (diff) | |
parent | cc332603431102a682feda22b9cf0093a29f0176 (diff) |
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'lib/dojo/promise/Promise.js.uncompressed.js')
-rw-r--r-- | lib/dojo/promise/Promise.js.uncompressed.js | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/lib/dojo/promise/Promise.js.uncompressed.js b/lib/dojo/promise/Promise.js.uncompressed.js deleted file mode 100644 index eba0080fd..000000000 --- a/lib/dojo/promise/Promise.js.uncompressed.js +++ /dev/null @@ -1,133 +0,0 @@ -define("dojo/promise/Promise", [ - "../_base/lang" -], function(lang){ - "use strict"; - - // module: - // dojo/promise/Promise - - function throwAbstract(){ - throw new TypeError("abstract"); - } - - return lang.extend(function Promise(){ - // summary: - // The public interface to a deferred. - // description: - // The public interface to a deferred. All promises in Dojo are - // instances of this class. - }, { - then: function(callback, errback, progback){ - // summary: - // Add new callbacks to the promise. - // description: - // Add new callbacks to the deferred. Callbacks can be added - // before or after the deferred is fulfilled. - // callback: Function? - // Callback to be invoked when the promise is resolved. - // Receives the resolution value. - // errback: Function? - // Callback to be invoked when the promise is rejected. - // Receives the rejection error. - // progback: Function? - // Callback to be invoked when the promise emits a progress - // update. Receives the progress update. - // returns: dojo/promise/Promise - // Returns a new promise for the result of the callback(s). - // This can be used for chaining many asynchronous operations. - - throwAbstract(); - }, - - cancel: function(reason, strict){ - // summary: - // Inform the deferred it may cancel its asynchronous operation. - // description: - // Inform the deferred it may cancel its asynchronous operation. - // The deferred's (optional) canceler is invoked and the - // deferred will be left in a rejected state. Can affect other - // promises that originate with the same deferred. - // reason: any - // A message that may be sent to the deferred's canceler, - // explaining why it's being canceled. - // strict: Boolean? - // If strict, will throw an error if the deferred has already - // been fulfilled and consequently cannot be canceled. - // returns: any - // Returns the rejection reason if the deferred was canceled - // normally. - - throwAbstract(); - }, - - isResolved: function(){ - // summary: - // Checks whether the promise has been resolved. - // returns: Boolean - - throwAbstract(); - }, - - isRejected: function(){ - // summary: - // Checks whether the promise has been rejected. - // returns: Boolean - - throwAbstract(); - }, - - isFulfilled: function(){ - // summary: - // Checks whether the promise has been resolved or rejected. - // returns: Boolean - - throwAbstract(); - }, - - isCanceled: function(){ - // summary: - // Checks whether the promise has been canceled. - // returns: Boolean - - throwAbstract(); - }, - - always: function(callbackOrErrback){ - // summary: - // Add a callback to be invoked when the promise is resolved - // or rejected. - // callbackOrErrback: Function? - // A function that is used both as a callback and errback. - // returns: dojo/promise/Promise - // Returns a new promise for the result of the callback/errback. - - return this.then(callbackOrErrback, callbackOrErrback); - }, - - otherwise: function(errback){ - // summary: - // Add new errbacks to the promise. - // errback: Function? - // Callback to be invoked when the promise is rejected. - // returns: dojo/promise/Promise - // Returns a new promise for the result of the errback. - - return this.then(null, errback); - }, - - trace: function(){ - return this; - }, - - traceRejected: function(){ - return this; - }, - - toString: function(){ - // returns: string - // Returns `[object Promise]`. - - return "[object Promise]"; - } - }); -}); |