armory
armory copied to clipboard
Add optional arguments for Event listeners.
This is a proposal. Moved the conversation from this PR and reopening it here since I messed up that previous branch.
Description:
The send()
method in the Event
class currently only calls functions with no arguments, with this PR is possible to add custom arguments when calling Event.send()
.
I have tested it and worked, it shouldn't break compatibility with current Nodes and previous Projects. The current downside is that the console doesn't throw an error when a listener doesn't match the sender's arguments.