You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried EM.emit('test','someArgumet') and not work.
I guess that the problem is in emit function.
while (len--) {
if (len === 1) {
// We do not need first argument.
break;
}
args[len] = arguments[len];
}
if len==2 like the example then len-- == 1 and the while break;
The text was updated successfully, but these errors were encountered:
I tried EM.emit('test','someArgumet') and not work.
I guess that the problem is in emit function.
while (len--) {
if (len === 1) {
// We do not need first argument.
break;
}
args[len] = arguments[len];
}
if len==2 like the example then len-- == 1 and the while break;
The text was updated successfully, but these errors were encountered: