1
0
Fork 0

initialise variable

This commit is contained in:
Jan Steemann 2012-10-23 18:50:34 +02:00
parent d4a116525b
commit c3f84cb2a6
1 changed files with 2 additions and 2 deletions

View File

@ -843,7 +843,7 @@ function reloadRouting () {
// .............................................................................
RoutingCache = {};
RoutingCache.flat = {};
RoutingCache.routes = {};
RoutingCache.middleware = {};
@ -1009,7 +1009,7 @@ function firstRouting (type, parts) {
url = "/" + parts.join("/");
}
if (! RoutingCache.flat.hasOwnProperty(type)) {
if (! RoutingCache.flat || ! RoutingCache.flat.hasOwnProperty(type)) {
return {
parts: parts,
position: -1,