refactor main, app
This commit is contained in:
parent
056c46331d
commit
3a501766ff
4
app.js
4
app.js
@ -18,3 +18,7 @@ require.config({
|
|||||||
"helper": []
|
"helper": []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require(["main", "helper"], function (main) {
|
||||||
|
main()
|
||||||
|
})
|
||||||
|
2
build.js
2
build.js
@ -2,7 +2,7 @@
|
|||||||
baseUrl: "lib",
|
baseUrl: "lib",
|
||||||
name: "../bower_components/almond/almond",
|
name: "../bower_components/almond/almond",
|
||||||
mainConfigFile: "app.js",
|
mainConfigFile: "app.js",
|
||||||
include: "main",
|
include: "../app",
|
||||||
wrap: true,
|
wrap: true,
|
||||||
optimize: "uglify",
|
optimize: "uglify",
|
||||||
out: "app-combined.js"
|
out: "app-combined.js"
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
require(["config", "moment", "chroma-js", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main", "helper"],
|
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) {
|
function (config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
|
||||||
main(Config)
|
return function () {
|
||||||
|
|
||||||
function main(config) {
|
|
||||||
var linklist, lostnodeslist, map, meshstats, newnodeslist, nodelist, router
|
var linklist, lostnodeslist, map, meshstats, newnodeslist, nodelist, router
|
||||||
|
|
||||||
function createGUI() {
|
function createGUI() {
|
||||||
|
Loading…
Reference in New Issue
Block a user