Skip to content

Commit

Permalink
Merge pull request #112 from shaiherman/master
Browse files Browse the repository at this point in the history
Update grant/ and exchange/ requires to use function expressions for com...
  • Loading branch information
jaredhanson committed Feb 6, 2015
2 parents 39de543 + e224cd1 commit b30ac84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports.grant = {};
fs.readdirSync(__dirname + '/grant').forEach(function(filename) {
if (/\.js$/.test(filename)) {
var name = path.basename(filename, '.js');
function load() { return require('./grant/' + name); }
var load = function () { return require('./grant/' + name); };
exports.grant.__defineGetter__(name, load);
}
});
Expand All @@ -56,7 +56,7 @@ exports.exchange = {};
fs.readdirSync(__dirname + '/exchange').forEach(function(filename) {
if (/\.js$/.test(filename)) {
var name = path.basename(filename, '.js');
function load() { return require('./exchange/' + name); }
var load = function () { return require('./exchange/' + name); };
exports.exchange.__defineGetter__(name, load);
}
});
Expand Down

0 comments on commit b30ac84

Please # to comment.