Permalink
Browse files

Doh, closure mistake :P. Fixed.

  • Loading branch information...
1 parent 1cc6b6c commit 0e58ca1ad480cc9761bed3f2392787d10062a6fc @bnoguchi committed Apr 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -79,7 +79,7 @@ for (var i = 0, l = includeModules.length; i < l; i++) {
var name = includeModules[i][0]
, isRoutable = includeModules[i][1];
Object.defineProperty(everyauth, name, {
- get: (function (isRoutable) {
+ get: (function (name, isRoutable) {
return function () {
var mod = this.modules[name] || (this.modules[name] = require('./lib/' + name));
// Make `everyauth` accessible from each
@@ -89,7 +89,7 @@ for (var i = 0, l = includeModules.length; i < l; i++) {
this.enabled[name] = mod;
return mod;
}
- })(isRoutable)
+ })(name, isRoutable)
});
};

0 comments on commit 0e58ca1

Please sign in to comment.