From 208d814eb6f30bebcfdbe1092d59d4a011d749d7 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 17 Sep 2018 17:19:03 +0200
Subject: [PATCH] js doc updated

---
 frontend-js/src/main/js/ServerConnector.js             | 2 +-
 frontend-js/src/main/js/map/overlay/SearchDbOverlay.js | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/frontend-js/src/main/js/ServerConnector.js b/frontend-js/src/main/js/ServerConnector.js
index eebb2c9793..7c5ee7d128 100644
--- a/frontend-js/src/main/js/ServerConnector.js
+++ b/frontend-js/src/main/js/ServerConnector.js
@@ -1693,7 +1693,7 @@ ServerConnector.getSessionData = function (project) {
  * @param {number} [params.projectId]
  * @param {Point} params.coordinates
  * @param {number} [params.count]
- * @param {string} [params.type]
+ * @param {string[]} [params.type]
  *
  * @returns {PromiseLike<IdentifiedElement[]>}
  */
diff --git a/frontend-js/src/main/js/map/overlay/SearchDbOverlay.js b/frontend-js/src/main/js/map/overlay/SearchDbOverlay.js
index f92ba6c440..aba0743abf 100644
--- a/frontend-js/src/main/js/map/overlay/SearchDbOverlay.js
+++ b/frontend-js/src/main/js/map/overlay/SearchDbOverlay.js
@@ -95,11 +95,10 @@ SearchDbOverlay.prototype.getElementsByQuery = function (query) {
  *
  * @param {IdentifiedElement} identifiedElement
  * @param {number} zoomLevel
- * @param {Point}coordinates
  * @returns {Promise}
  * @private
  */
-SearchDbOverlay.prototype._getFirstVisibleParentOrObject = function (identifiedElement, zoomLevel, coordinates) {
+SearchDbOverlay.prototype._getFirstVisibleParentOrObject = function (identifiedElement, zoomLevel) {
   if (identifiedElement === undefined) {
     return Promise.resolve();
   }
@@ -129,7 +128,7 @@ SearchDbOverlay.prototype._getFirstVisibleParentOrObject = function (identifiedE
           type: "ALIAS",
           modelId: identifiedElement.getModelId()
         });
-        return self._getFirstVisibleParentOrObject(parent, zoomLevel, coordinates);
+        return self._getFirstVisibleParentOrObject(parent, zoomLevel);
       } else {
         logger.warn("Cannot find visible parent for object. (zoomLevel=" + zoomLevel + ")");
         logger.warn(fullElement);
@@ -145,7 +144,7 @@ SearchDbOverlay.prototype._getFirstVisibleParentOrObject = function (identifiedE
  * @param {number} params.modelId
  * @param {Point} params.coordinates
  * @param {number} params.zoom
- * @returns {Promise}
+ * @returns {Promise| PromiseLike}
  */
 SearchDbOverlay.prototype.searchByCoordinates = function (params) {
   var modelId = params.modelId;
-- 
GitLab