fix(client) load

This commit is contained in:
coderaiser 2019-07-22 20:35:04 +03:00
parent ecd2624d2b
commit 551fc98498
2 changed files with 4 additions and 3 deletions

View file

@ -62,9 +62,9 @@ function EventsProto() {
break;
case 'array':
for (const eventName of eventName) {
for (const name of eventName) {
parseArgs(
eventName,
name,
element,
listener,
callback

View file

@ -20,8 +20,9 @@ module.exports = function loadModule(params) {
const {
path,
name = path && noJS(pascalCase(path)),
} = params;
const name = path && noJS(pascalCase(path));
const doBefore = params.dobefore;
if (CloudCmd[name])