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
// [obj|fn] -> null
function router (cb) {
_router = sheetRouter(cb)
// (str?, [fn|[fn]]) -> obj
function router (defaultRoute, cb) {
_router = sheetRouter(defaultRoute, cb)
return _router
}