Skip to content

Commit

Permalink
Update grant/ and exchange/ requires to use function expressions for …
Browse files Browse the repository at this point in the history
…compatibility with strict mode
  • Loading branch information
shaiherman committed Feb 6, 2015
1 parent 8afbaac commit e224cd1
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 e224cd1

Please # to comment.