coldbox-modules / cbwire

CBWIRE is a ColdBox module that makes building reactive, modern apps easy using HTML-over-the-wire technologies and CFML.
https://cbwire.ortusbooks.com
Other
28 stars 5 forks source link

Add ability to call emit( 'event', 'someValue' ) without passing an array as the second argument #96

Closed grantcopley closed 1 year ago

grantcopley commented 1 year ago

You currently have to pass an array to pass values using the emit() method.

We need to make it so that you can pass a single argument.

In a Wire object

function someAction() {
    emit( 'someEvent', 'someValue' ); // does not work, must be an array
}