diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-03-18 12:25:30 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-03-18 12:25:30 +0100 |
commit | a7530e4ef857ebb7bbe92b1aa07157f8475ea55e (patch) | |
tree | 0f14303cded2bf988f72f54d966a138cc5a6b8b0 /js | |
parent | 4cf80e14033767f8b5b992bb9df098d6b59bf3b2 (diff) | |
download | site-a7530e4ef857ebb7bbe92b1aa07157f8475ea55e.tar.gz |
use requirejs
Diffstat (limited to 'js')
-rw-r--r-- | js/boot.js | 5 | ||||
-rw-r--r-- | js/main.js | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/js/boot.js b/js/boot.js new file mode 100644 index 0000000..54f5b32 --- /dev/null +++ b/js/boot.js @@ -0,0 +1,5 @@ +/* globals requirejs */ +requirejs.config({ + baseUrl: 'js' +}); +requirejs(['main']); @@ -1,5 +1,4 @@ -/* jshint browser:true, devel:true */ -(function() { +define(function() { 'use strict'; /* loads a page into view and execute scripts */ @@ -40,4 +39,4 @@ if (!selectPage(location.hash.replace(/^#\//, ''))) { location.hash = '#/home'; } -})(); +}); |