Fix typo: loadPlugin(s)
This commit is contained in:
parent
f1f692a8a5
commit
455ee9ec63
|
@ -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));
|
||||
files.forEach(function(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() {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue