renaming for clarity

This commit is contained in:
Connor Turland 2017-03-16 11:17:25 -04:00
parent 43ffbbca82
commit c97b769a1a
2 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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()
}
})
}