Skip to content

Commit

Permalink
Removed global leak
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Feb 13, 2013
1 parent 7beba0f commit bf2b902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/railway_routes.js
Expand Up @@ -462,6 +462,7 @@ Map.prototype.subroutes = function (name, subroutes) {
* });
*/
Map.prototype.addRoutes = function (path, customBridge) {
var bridge;
var map = this;
var routes = require(path);
routes = routes.routes || routes;
Expand Down

0 comments on commit bf2b902

Please sign in to comment.