From c97b769a1aadc987e006d14043ac2694ed6ca598 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 16 Mar 2017 11:17:25 -0400 Subject: [PATCH] renaming for clarity --- frontend/src/Metamaps/Map/index.js | 4 ++-- frontend/src/Metamaps/Topic.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 1c7a6c26..2db12263 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -90,7 +90,7 @@ const Map = { }, launch: function(id) { const self = Map - var start = function() { + var dataIsReadySetupMap = function() { Map.setAccessRequest() Visualize.type = 'ForceDirected' JIT.prepareVizData() @@ -107,7 +107,7 @@ const Map = { ReactApp.render() } function isLoaded() { - if (InfoBox.generateBoxHTML) start() + if (InfoBox.generateBoxHTML) dataIsReadySetupMap() else setTimeout(() => isLoaded(), 50) } if (Active.Map && Active.Map.id === id) { diff --git a/frontend/src/Metamaps/Topic.js b/frontend/src/Metamaps/Topic.js index 10d1da81..49b27253 100644 --- a/frontend/src/Metamaps/Topic.js +++ b/frontend/src/Metamaps/Topic.js @@ -36,7 +36,7 @@ const Topic = { } else callback(DataModel.Topics.get(id)) }, launch: function(id) { - var start = function() { + var dataIsReadySetupTopic = function() { Visualize.type = 'RGraph' JIT.prepareVizData() Selected.reset() @@ -49,7 +49,7 @@ const Topic = { ReactApp.render() } if (Active.Topic && Active.Topic.id === id) { - start() + dataIsReadySetupTopic() } else { Loading.show() @@ -61,7 +61,7 @@ const Topic = { DataModel.Topics = new DataModel.TopicCollection([data.topic].concat(data.relatives)) DataModel.Synapses = new DataModel.SynapseCollection(data.synapses) DataModel.attachCollectionEvents() - start() + dataIsReadySetupTopic() } }) }