28 lines
353 B
JavaScript
Raw Normal View History

2014-02-07 16:41:03 -08:00
//
2014-04-05 02:03:01 -07:00
// app.js
2014-02-07 16:41:03 -08:00
//
2014-04-05 02:03:01 -07:00
var APP = (function() {
2014-02-07 16:41:03 -08:00
2015-11-06 23:17:00 -08:00
function initializeSidebar() {
new Sidebar();
}
2014-02-07 16:41:03 -08:00
2015-11-06 23:17:00 -08:00
function initialize() {
APP.Utils.runIfClassNamePresent('page-home', initHome);
2014-04-05 02:03:01 -07:00
2015-11-06 23:17:00 -08:00
//always init sidebar
initializeSidebar();
}
function initHome() {
APP.Homepage.init();
}
//api
return {
initialize: initialize
}
2014-02-07 16:41:03 -08:00
2014-04-05 02:03:01 -07:00
})();