mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(client) load
This commit is contained in:
parent
ecd2624d2b
commit
551fc98498
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue