commit bb4657714fe2800755c2e9cf99c04af91429b644
parent 6e4c438c4d02e2b6cdfa135dda8df50fc29ae147
Author: Konstantin Tarkus <hello@tarkus.me>
Date: Tue, 14 Oct 2014 15:28:52 +0400
A tiny code style fix in app.js
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/app.js b/src/app.js
@@ -30,6 +30,7 @@ function render(page) {
}
// Define URL routes
+// See https://github.com/flatiron/director
var routes = {
'/': () => render(require('./pages/Index.jsx')),
'/privacy': () => render(require('./pages/Privacy.jsx'))
@@ -38,7 +39,7 @@ var routes = {
// Initialize a router
var router = new Router(routes).configure({html5history: true}).init();
-AppDispatcher.register(function(payload) {
+AppDispatcher.register((payload) => {
var action = payload.action;