Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix wrong binding of JS this#2310
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
inside the closure this binds to the WebSocket object rather than to the figure object.
Looks fine.@mdboom, would you mind taking a look and merging? |
Thanks. This looks good. I'll test and merge when I get back from vacation next week. |
Thanks for finding this. I was stumped as to why the onload handler wasn't working. I'm reviving#2054, which is a pretty major refactor of the javascript, so I think it best to just address this and test this there, which I hope to have in a mergeable state soon. |
Integrated manually as part of2b241cf |
inside the closure this binds to the WebSocket object rather than to the figure object. I only briefly tested this but its meaning should be apparent.