We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain events require more advanced flow control than "call a bunch of listeners" (see #10 for an example).
I think we need an event library that implements something similar to stopPropagation for this, so the following becomes possible:
player.on("chat", function(message, ev) { if (message.length > 0 && message[0] === "/") { player.emit("command", message.substr(1)); ev.stopPropagation(); } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Certain events require more advanced flow control than "call a bunch of listeners" (see #10 for an example).
I think we need an event library that implements something similar to stopPropagation for this, so the following becomes possible:
The text was updated successfully, but these errors were encountered: