Skip to content
Snippets Groups Projects
Commit 3a501766 authored by Nils Schneider's avatar Nils Schneider
Browse files

refactor main, app

parent 056c4633
Branches
No related tags found
No related merge requests found
......@@ -18,3 +18,7 @@ require.config({
"helper": []
}
})
require(["main", "helper"], function (main) {
main()
})
......@@ -2,7 +2,7 @@
baseUrl: "lib",
name: "../bower_components/almond/almond",
mainConfigFile: "app.js",
include: "main",
include: "../app",
wrap: true,
optimize: "uglify",
out: "app-combined.js"
......
require(["config", "moment", "chroma-js", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main", "helper"],
function (Config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
main(Config)
function main(config) {
define(["config", "moment", "chroma-js", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main"],
function (config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
return function () {
var linklist, lostnodeslist, map, meshstats, newnodeslist, nodelist, router
function createGUI() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment