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

invokelatest handler #115

Merged
merged 1 commit into from
Jan 17, 2018
Merged

invokelatest handler #115

merged 1 commit into from
Jan 17, 2018

Conversation

pfitzseb
Copy link
Member

This seems necessary to get handlers to work properly.
With this PR @Ward9250's code in #57 works properly:

using Blink
w = Window()
sleep(5)
body!(w, "My Fancy App!<br/><br/><button id='gobutton'>Click me!</button>")

handle(w, "press") do args
  println(args)
end

@js_ w document.getElementById("gobutton").onclick = () -> Blink.msg("press", 122)
close(w)

Not sure if this is a good idea in general though -- feedback would be appreciated :)

@pfitzseb pfitzseb merged commit 83b29bf into master Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants