refactor main

This commit is contained in:
Nils Schneider 2015-03-29 19:38:50 +02:00
parent 7006f5174a
commit 61a58f11bc

View File

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