kopia lustrzana https://github.com/c9/core
fixes +9103 constructor is a special key...
rodzic
a1b90ab235
commit
b447e9ee6b
|
@ -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("/");
|
||||||
|
|
Ładowanie…
Reference in New Issue