load helper.js using requirejs
This commit is contained in:
		
							parent
							
								
									5a5c3e2263
								
							
						
					
					
						commit
						056c46331d
					
				
							
								
								
									
										8
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								app.js
									
									
									
									
									
								
							@ -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 @@
 | 
				
			|||||||
    <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>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
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)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user