Fixed the issue when the details panel would remain visible after navigating away from the topo page and back
Removed Tabs
Changed method name to begin with a verb
Change-Id: I01d1ed0635858902e3adc82e23af258e0c689827
diff --git a/web/gui/src/main/webapp/app/view/topo/topoSelect.js b/web/gui/src/main/webapp/app/view/topo/topoSelect.js
index 03a826f..a27a6f5 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoSelect.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoSelect.js
@@ -35,10 +35,14 @@
*/
// internal state
- var hovered, // the node over which the mouse is hovering
- selections = {}, // currently selected nodes (by id)
- selectOrder = [], // the order in which we made selections
+ var hovered, selections, selectOrder, consumeClick;
+
+ function setInitialState () {
+ hovered = null; // the node over which the mouse is hovering
+ selections = {}; // currently selected nodes (by id)
+ selectOrder = []; // the order in which we made selections
consumeClick = false; // used to coordinate with SVG click handler
+ }
// ==========================
@@ -286,6 +290,7 @@
function initSelect(_api_) {
api = _api_;
+ setInitialState();
}
function destroySelect() { }