fixes +9103 constructor is a special key...

pull/134/merge
Matthijs van Henten 2015-09-07 08:40:19 +00:00
rodzic a1b90ab235
commit b447e9ee6b
1 zmienionych plików z 2 dodań i 1 usunięć

3
node_modules/frontdoor/lib/section.js wygenerowano vendored
Wyświetl plik

@ -233,7 +233,8 @@ module.exports = function Section(name, description, types) {
var splitPath = path.split("/"); var splitPath = path.split("/");
if (!splitPath[0]) if (!splitPath[0])
splitPath.shift(); splitPath.shift();
if (splitPath.length) {
if (splitPath.length && sections.hasOwnProperty(splitPath[0])) {
var section = sections[splitPath[0]]; var section = sections[splitPath[0]];
if (section && section.length) { if (section && section.length) {
var subPath = "/" + splitPath.slice(1).join("/"); var subPath = "/" + splitPath.slice(1).join("/");