Fix typo: loadPlugin(s)

This commit is contained in:
Fabien Franzen 2014-08-05 16:28:17 +02:00
parent f1f692a8a5
commit 455ee9ec63
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ var definePlugin = exports.define = function definePlugin(name, fn) {
} }
}; };
var loadPlugin = exports.load = function loadPlugin(dir) { var loadPlugins = exports.load = function loadPlugins(dir) {
var files = tryReadDir(path.resolve(dir)); var files = tryReadDir(path.resolve(dir));
files.forEach(function(filename) { files.forEach(function(filename) {
var filepath = path.resolve(path.join(dir, filename)); var filepath = path.resolve(path.join(dir, filename));
@ -50,7 +50,7 @@ var loadPlugin = exports.load = function loadPlugin(dir) {
}); });
}; };
loadPlugin(path.join(__dirname, 'plugins')); loadPlugins(path.join(__dirname, 'plugins'));
function tryReadDir() { function tryReadDir() {
try { try {