Steven Burrows

Fixed the issue when the details panel would remain visible after navigating awa…

…y from the topo page and back

Removed Tabs
Changed method name to begin with a verb

Change-Id: I01d1ed0635858902e3adc82e23af258e0c689827
...@@ -35,10 +35,14 @@ ...@@ -35,10 +35,14 @@
35 */ 35 */
36 36
37 // internal state 37 // internal state
38 - var hovered, // the node over which the mouse is hovering 38 + var hovered, selections, selectOrder, consumeClick;
39 - selections = {}, // currently selected nodes (by id) 39 +
40 - selectOrder = [], // the order in which we made selections 40 + function setInitialState () {
41 + hovered = null; // the node over which the mouse is hovering
42 + selections = {}; // currently selected nodes (by id)
43 + selectOrder = []; // the order in which we made selections
41 consumeClick = false; // used to coordinate with SVG click handler 44 consumeClick = false; // used to coordinate with SVG click handler
45 + }
42 46
43 // ========================== 47 // ==========================
44 48
...@@ -286,6 +290,7 @@ ...@@ -286,6 +290,7 @@
286 290
287 function initSelect(_api_) { 291 function initSelect(_api_) {
288 api = _api_; 292 api = _api_;
293 + setInitialState();
289 } 294 }
290 295
291 function destroySelect() { } 296 function destroySelect() { }
......