lift parameter-less do block to lambdas
This commit is contained in:
parent
f7b10e213b
commit
a3f19c87fb
10 changed files with 46 additions and 26 deletions
|
|
@ -35,11 +35,11 @@ b.onFocusLost:
|
|||
b.onFocusLost do:
|
||||
echo "lost focus 2"
|
||||
|
||||
b.onUserEvent("UserEvent 1") do:
|
||||
b.onUserEvent "UserEvent 1" do:
|
||||
discard
|
||||
|
||||
b.onUserEvent("UserEvent 2"):
|
||||
b.onUserEvent "UserEvent 2":
|
||||
discard
|
||||
|
||||
b.onUserEvent("UserEvent 3", () => echo "event 2")
|
||||
b.onUserEvent("UserEvent 3", () => echo "event 3")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue