Use shorthand syntax in main.js routes

This commit is contained in:
QWp6t
2016-07-16 10:14:57 -07:00
parent 339cc8e01e
commit 320c6916dc
2 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ export default class Router {
}
fire(route, fn = 'init', args) {
let fire = route !== '' && this.routes[route] && typeof this.routes[route][fn] === 'function';
const fire = route !== '' && this.routes[route] && typeof this.routes[route][fn] === 'function';
if (fire) {
this.routes[route][fn](args);
}