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

Slider example #145

Open
ahwillia opened this issue Apr 14, 2016 · 1 comment
Open

Slider example #145

ahwillia opened this issue Apr 14, 2016 · 1 comment

Comments

@ahwillia
Copy link
Contributor

Does the tutorial/documentation for slider need to be updated? I am getting the following error while following the examples...

function main(window)
    push!(window.assets, "widgets")
    iterations = Signal(0) # The angle at any given time
    connected_slider = subscribe(slider(0:7), iterations)
end

Produces:

MethodError: `subscribe` has no method matching subscribe(::Escher.Slider, ::Reactive.Signal{Int64})
Closest candidates are:
  subscribe(::Any, ::Any, !Matched::Any)

I'm checked out on the latest master for both Reactive and Escher.

@shashi
Copy link
Member

shashi commented Apr 14, 2016

This is a recent API change. Just use subscribe(iterations, slider(0:7)). There was a deprecation and I think it was removed too soon.

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

No branches or pull requests

2 participants