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

load helper.js using requirejs

parent 5a5c3e22
No related branches found
No related tags found
No related merge requests found
...@@ -6,15 +6,15 @@ require.config({ ...@@ -6,15 +6,15 @@ require.config({
"chroma-js": "../bower_components/chroma-js/chroma.min", "chroma-js": "../bower_components/chroma-js/chroma.min",
"moment": "../bower_components/moment/min/moment-with-locales.min", "moment": "../bower_components/moment/min/moment-with-locales.min",
"tablesort": "../bower_components/tablesort/tablesort.min", "tablesort": "../bower_components/tablesort/tablesort.min",
"tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric" "tablesort.numeric": "../bower_components/tablesort/src/sorts/tablesort.numeric",
"helper": "../helper"
}, },
shim: { shim: {
"leaflet.label": ["leaflet"], "leaflet.label": ["leaflet"],
"tablesort": { "tablesort": {
exports: "Tablesort" exports: "Tablesort"
}, },
"tablesort.numeric": ["tablesort"] "tablesort.numeric": ["tablesort"],
"helper": []
} }
}) })
require(["main"])
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<script src="bower_components/es6-shim/es6-shim.min.js"></script> <script src="bower_components/es6-shim/es6-shim.min.js"></script>
<script src="bower_components/intl/Intl.complete.js"></script> <script src="bower_components/intl/Intl.complete.js"></script>
<script src="helper.js"></script>
<script src="bower_components/requirejs/require.js" data-main="app"></script> <script src="bower_components/requirejs/require.js" data-main="app"></script>
</head> </head>
<body> <body>
......
require(["config", "moment", "chroma-js", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main"], 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) { function (Config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
main(Config) main(Config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment