From b447e9ee6bfb09c339773356639c2b3688fb3064 Mon Sep 17 00:00:00 2001 From: Matthijs van Henten Date: Mon, 7 Sep 2015 08:40:19 +0000 Subject: [PATCH] fixes +9103 constructor is a special key... --- node_modules/frontdoor/lib/section.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_modules/frontdoor/lib/section.js b/node_modules/frontdoor/lib/section.js index 69c84e6c..0aa98a4f 100644 --- a/node_modules/frontdoor/lib/section.js +++ b/node_modules/frontdoor/lib/section.js @@ -233,7 +233,8 @@ module.exports = function Section(name, description, types) { var splitPath = path.split("/"); if (!splitPath[0]) splitPath.shift(); - if (splitPath.length) { + + if (splitPath.length && sections.hasOwnProperty(splitPath[0])) { var section = sections[splitPath[0]]; if (section && section.length) { var subPath = "/" + splitPath.slice(1).join("/");