handle most dependencies using requirejs

This commit is contained in:
Nils Schneider 2015-03-29 03:35:10 +02:00
parent ca8992b07a
commit 5651c605de
9 changed files with 30 additions and 15 deletions
lib/infobox

View file

@ -1,4 +1,4 @@
define(function () {
define(["moment", "tablesort", "tablesort.numeric"], function (moment, Tablesort) {
return function(config, el, router, d) {
var h2 = document.createElement("h2")
h2.textContent = d.nodeinfo.hostname