www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8a85114c13fda9af0606e367d8a1606dba1845f8
parent e8046d8ad256ca429dff75ad660ec9ad7972ad30
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  2 Feb 2016 05:31:08 -0500

Update comments to recommend Zotero.HTTP.request() instead of .promise()

Diffstat:
Mchrome/content/zotero/xpcom/http.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js @@ -262,7 +262,7 @@ Zotero.HTTP = new function() { * @param {Zotero.CookieSandbox} [cookieSandbox] Cookie sandbox object * @return {XMLHttpRequest} The XMLHttpRequest object if the request was sent, or * false if the browser is offline - * @deprecated Use {@link Zotero.HTTP.promise} + * @deprecated Use {@link Zotero.HTTP.request} */ this.doGet = function(url, onDone, responseCharset, cookieSandbox) { if (url instanceof Components.interfaces.nsIURI) { @@ -323,7 +323,7 @@ Zotero.HTTP = new function() { * @param {Zotero.CookieSandbox} [cookieSandbox] Cookie sandbox object * @return {XMLHttpRequest} The XMLHttpRequest object if the request was sent, or * false if the browser is offline - * @deprecated Use {@link Zotero.HTTP.promise} + * @deprecated Use {@link Zotero.HTTP.request} */ this.doPost = function(url, body, onDone, headers, responseCharset, cookieSandbox) { if (url instanceof Components.interfaces.nsIURI) { @@ -407,7 +407,7 @@ Zotero.HTTP = new function() { * @param {Zotero.CookieSandbox} [cookieSandbox] Cookie sandbox object * @return {XMLHttpRequest} The XMLHttpRequest object if the request was sent, or * false if the browser is offline - * @deprecated Use {@link Zotero.HTTP.promise} + * @deprecated Use {@link Zotero.HTTP.request} */ this.doHead = function(url, onDone, requestHeaders, cookieSandbox) { if (url instanceof Components.interfaces.nsIURI) { @@ -466,7 +466,7 @@ Zotero.HTTP = new function() { * @param {nsIURI} url * @param {Function} onDone * @return {XMLHTTPRequest} - * @deprecated Use {@link Zotero.HTTP.promise} + * @deprecated Use {@link Zotero.HTTP.request} */ this.doOptions = function (uri, callback) { // Don't display password in console