router: fix arguments bug
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user