Merge pull request #76 from yoshuawuyts/fix-router-arguments-bug

router: fix arguments bug
This commit is contained in:
Yoshua Wuyts
2016-06-25 03:20:55 +02:00
committed by GitHub
+3 -3
View File
@@ -179,9 +179,9 @@ function choo () {
}
// register all routes on the router
// [obj|fn] -> null
function router (cb) {
_router = sheetRouter(cb)
// (str?, [fn|[fn]]) -> obj
function router (defaultRoute, cb) {
_router = sheetRouter(defaultRoute, cb)
return _router
}