From 1ca6bd2f0bdc7ae704bc8ca50fa7f81379cf9fb7 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Tue, 15 May 2018 17:37:45 +1200 Subject: [PATCH] location getter/setter JSDoc --- libraries/networking/src/AddressManager.h | 5 +++++ tools/jsdoc/plugins/hifi.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/AddressManager.h b/libraries/networking/src/AddressManager.h index 8e2553779b..7832b26c96 100644 --- a/libraries/networking/src/AddressManager.h +++ b/libraries/networking/src/AddressManager.h @@ -32,6 +32,11 @@ const QString GET_PLACE = "/api/v1/places/%1"; /**jsdoc * The location API provides facilities related to your current location in the metaverse. * + *
Getter/Setter
+ *

You can get and set your current metaverse address by directly reading a string value from and writing a string value to + * the location object. This is an alternative to using the location.href property or this object's + * functions.

+ * * @namespace location * * @hifi-interface diff --git a/tools/jsdoc/plugins/hifi.js b/tools/jsdoc/plugins/hifi.js index d063d43990..21749c7fe2 100644 --- a/tools/jsdoc/plugins/hifi.js +++ b/tools/jsdoc/plugins/hifi.js @@ -114,8 +114,8 @@ exports.handlers = { // Append an Available In: table at the end of the namespace description. if (rows.length > 0) { - var table = "

Available in:" + rows.join("") + "
"; - e.doclet.description = (e.doclet.description ? e.doclet.description : "") + table; + var table = "
Available in:" + rows.join("") + "

"; + e.doclet.description = table + (e.doclet.description ? e.doclet.description : ""); } } }