From 8a85114c13fda9af0606e367d8a1606dba1845f8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 2 Feb 2016 05:31:08 -0500 Subject: [PATCH] Update comments to recommend Zotero.HTTP.request() instead of .promise() --- chrome/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 index d035d15f4..9333c9a73 100644 --- 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