Use jsDoc comments in front-end scripts

This commit is contained in:
2017-07-01 01:08:54 -07:00
parent b8a502def6
commit 0a99ad1db5
3 changed files with 45 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
/** import external dependencies */
// import external dependencies
import 'jquery';
import 'bootstrap';
/** import local dependencies */
// import local dependencies
import Router from './util/Router';
import common from './routes/common';
import home from './routes/home';
@@ -10,16 +10,15 @@ import aboutUs from './routes/about';
/**
* Populate Router instance with DOM routes
* @type {Router} routes - An instance of our router
*/
const routes = new Router({
/** All pages */
// All pages
common,
/** Home page */
// Home page
home,
/** About Us page, note the change from about-us to aboutUs. */
// About Us page, note the change from about-us to aboutUs.
aboutUs,
});
/** Load Events */
// Load Events
jQuery(document).ready(() => routes.loadEvents());