router: fix arguments bug

This commit is contained in:
Yoshua Wuyts
2016-06-23 23:54:02 +02:00
parent bfbc445c1e
commit bca9d46f61
+3 -3
View File
@@ -179,9 +179,9 @@ function choo () {
} }
// register all routes on the router // register all routes on the router
// [obj|fn] -> null // (str?, [fn|[fn]]) -> obj
function router (cb) { function router (defaultRoute, cb) {
_router = sheetRouter(cb) _router = sheetRouter(defaultRoute, cb)
return _router return _router
} }