prev.params should always exist (#227)

This commit is contained in:
Tim Wisniewski
2016-08-23 05:45:53 -04:00
committed by GitHub
parent cdabe22e59
commit e44f9619e9
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ function choo (opts) {
// create a new router with a custom `createRoute()` function
// (str?, obj, fn?) -> null
function createRouter (defaultRoute, routes, createSend) {
var prev = {}
var prev = { params: {} }
return sheetRouter(defaultRoute, routes, createRoute)
function createRoute (routeFn) {