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
Button API seems unfriendly for changing click action #44
Comments
In general, the whenXXXXDo: pattern leads to this kind of issue. |
A possible solution: the button has in initialize:
and it's prepared to somebody that updates the valuable via |
It could be more efficient to remember in the button the event handler, and that the mutator method updates the block in the event handler. But not sure how much more efficient. |
the event handler is now stored so that it can be replaced or removed |
This is because whenClickedDo adds a new event handler for click each time. Example:
it pop ups 2 messages each time.
The text was updated successfully, but these errors were encountered: