refactor main
This commit is contained in:
parent
7006f5174a
commit
61a58f11bc
@ -123,17 +123,13 @@ function (config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshsta
|
||||
]
|
||||
|
||||
Promise.all(urls.map(getJSON))
|
||||
.then(function (d) {
|
||||
createGUI()
|
||||
return d
|
||||
})
|
||||
.then(handleData)
|
||||
.then(function (d) {
|
||||
createGUI()
|
||||
dataTargets.forEach(function (t) {
|
||||
t.setData(d)
|
||||
})
|
||||
router.start()
|
||||
})
|
||||
.then(function () { router.start() })
|
||||
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user