Skip to content

Commit

Permalink
ns deprecared
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Mar 27, 2013
1 parent b69a18a commit f3fdc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railway_routes.js
Expand Up @@ -490,7 +490,7 @@ Map.prototype.namespace = function (name, options, subroutes) {
// store previous ns // store previous ns
var old_ns = this.ns, oldGlobPath = this.globPath; var old_ns = this.ns, oldGlobPath = this.globPath;
// add new ns to old (ensure tail slash present) // add new ns to old (ensure tail slash present)
this.ns = old_ns + name.replace(/\/$/, '') + '/'; // this.ns = old_ns + name.replace(/\/$/, '') + '/';
this.globPath = oldGlobPath + name.replace(/\/$/, '') + '/'; this.globPath = oldGlobPath + name.replace(/\/$/, '') + '/';
if (options && options.middleware) { if (options && options.middleware) {
this.middlewareStack = this.middlewareStack.concat(options.middleware); this.middlewareStack = this.middlewareStack.concat(options.middleware);
Expand Down

0 comments on commit f3fdc63

Please sign in to comment.