From 04e081a0ff29cb3d726a704c2b73fa68dd443faa Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Thu, 20 Apr 2017 16:54:34 +0200 Subject: [PATCH] Fixed duplicated export and docs --- web/client/actions/globeswitcher.js | 4 ++-- web/client/components/buttons/FullScreenButton.jsx | 2 +- web/client/epics/globeswitcher.js | 5 ----- web/client/epics/maptype.js | 1 + web/client/plugins/searchbar/ToggleButton.jsx | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web/client/actions/globeswitcher.js b/web/client/actions/globeswitcher.js index 940cce9adf..4713314d8e 100644 --- a/web/client/actions/globeswitcher.js +++ b/web/client/actions/globeswitcher.js @@ -10,7 +10,7 @@ const TOGGLE_3D = "TOGGLE_3D"; const UPDATE_LAST_2D_MAPTYPE = "UPDATE_LAST_2D_MAPTYPE"; /** - * when 3d mode have to be toggled + * Emitted when 3d map have to be toggled * @memberof actions.globeswitcher * @param {boolean} enable true for enable, false for disable * @return {action} the action of type `TOGGLE_FULLSCREEN` with enable flag and element selector. @@ -29,7 +29,7 @@ function toggle3d(enable, originalMapType) { }; } /** - * saves the last 2d map + * Saves the last 2d map * @memberof actions.globeswitcher * @param {string} mapType last maptype * @return {object} action diff --git a/web/client/components/buttons/FullScreenButton.jsx b/web/client/components/buttons/FullScreenButton.jsx index 71cd200c0b..e4f4447e7c 100644 --- a/web/client/components/buttons/FullScreenButton.jsx +++ b/web/client/components/buttons/FullScreenButton.jsx @@ -1,4 +1,4 @@ -/** +/* * Copyright 2017, GeoSolutions Sas. * All rights reserved. * diff --git a/web/client/epics/globeswitcher.js b/web/client/epics/globeswitcher.js index 297bebb261..94a373503e 100644 --- a/web/client/epics/globeswitcher.js +++ b/web/client/epics/globeswitcher.js @@ -33,11 +33,6 @@ const updateRouteOn3dSwitch = (action$, store) => } Rx.Observable.of(updateLast2dMapType(action.mapType)); }); - -module.exports = { - updateRouteOn3dSwitch -}; - /** * Epics for 3d switcher functionality * @name epics.globeswitcher diff --git a/web/client/epics/maptype.js b/web/client/epics/maptype.js index e3732a91c4..5289491a4c 100644 --- a/web/client/epics/maptype.js +++ b/web/client/epics/maptype.js @@ -14,6 +14,7 @@ import { UPDATE_LOCATION } from 'react-router-redux'; /** * keep the default mapType in sync when change the URL of the map for viewer + * @memberof epics.maptype * @param {external:Observable} action$ the stream of actions, acts on `UPDATE_LOCATION` * @param {object} store the store middleware API from redux `createMiddleware` * @return {external:Observable} the stream of the actions to emit. (`changeMapType`) diff --git a/web/client/plugins/searchbar/ToggleButton.jsx b/web/client/plugins/searchbar/ToggleButton.jsx index cc64317117..942f7976f2 100644 --- a/web/client/plugins/searchbar/ToggleButton.jsx +++ b/web/client/plugins/searchbar/ToggleButton.jsx @@ -1,4 +1,4 @@ -/** +/* * Copyright 2016, GeoSolutions Sas. * All rights reserved. *