We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not at all sure how to do this... I am trying to add an XHR call back to an "Opal-JQuery" HTTP.put method call.
Its not clear what goes in the XHR option. In jQuery its a function that will create and return the XHR object.
Not clear what to do when doing this with opal.
For example HTTP.put("my.big.url", xhr: what_goes_here)
HTTP.put("my.big.url", xhr: what_goes_here)
I have tried various options and looked through the code... I can't figure it out.
The text was updated successfully, but these errors were encountered:
Figured it out:
xhr: works with lambda only.
lambdas have to_n implemented, but methods do not, so doing an xhr: lambda { ... } works but xhr: method(:foo) does not.
will update docs and do a pull request
Sorry, something went wrong.
great :)
I think this is closed by dc644be 😉
No branches or pull requests
Not at all sure how to do this...
I am trying to add an XHR call back to an "Opal-JQuery" HTTP.put method call.
Its not clear what goes in the XHR option. In jQuery its a function that will create and return the XHR object.
Not clear what to do when doing this with opal.
For example
HTTP.put("my.big.url", xhr: what_goes_here)
I have tried various options and looked through the code... I can't figure it out.
The text was updated successfully, but these errors were encountered: