kopia lustrzana https://github.com/c9/core
tidied
rodzic
4ffa8c0e8e
commit
8ba1a02f29
|
@ -83,13 +83,13 @@ module.exports = function Section(name, description, types) {
|
||||||
return section;
|
return section;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.mount = function( name, section ){
|
this.mount = function(name, section) {
|
||||||
if (!sections[name])
|
if (!sections[name])
|
||||||
sections[name] = [];
|
sections[name] = [];
|
||||||
|
|
||||||
sections[name].push(section);
|
sections[name].push(section);
|
||||||
};
|
};
|
||||||
|
|
||||||
this._rootHandler = function(req, res) {
|
this._rootHandler = function(req, res) {
|
||||||
this.handle(req, res, function(err) {
|
this.handle(req, res, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Ładowanie…
Reference in New Issue