Skip to content
New issue

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

Update communication.md #237

Merged
merged 1 commit into from
Dec 31, 2019
Merged

Update communication.md #237

merged 1 commit into from
Dec 31, 2019

Conversation

twavv
Copy link
Member

@twavv twavv commented Dec 31, 2019

Fixes #222.

@@ -78,7 +78,7 @@ pass more or fewer arguments, pass your arguments as an array:
handle(w, "event") do count, values, message
# ...
end
@js w Blink.msg("event", [1, ['a','b'], "Hi"]);
@js w Blink.msg("press", [1, ['a','b'], "Hi"]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I actually think this was the wrong fix. The problem is actually with the way the arguments to the "event" handler are declared.

I think what this example was trying to show is that you can to use argument destructuring in order to pass multiple arguments to a handler..
I just opened #238 to fix it. :) Thanks for responding to the issue in the first place! :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't even notice that.

🤷‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in documentation
2 participants