You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have attached a ruby block to my js context in order to power a callback mechanism. It should go ruby -> js -> ruby -> js (and maybe a few more times after that). My code looks something like:
subject.register_helper('alsowith') do |this, context, block|
context["fn"]
end
Unfortunately I can't use the "fn" key's value, a JavaScriptFunction appears to be an empty class and not invocable. I was expecting something like context["fn"].call(123) so I could keep going.
The text was updated successfully, but these errors were encountered:
I have attached a ruby block to my js context in order to power a callback mechanism. It should go ruby -> js -> ruby -> js (and maybe a few more times after that). My code looks something like:
where context looks like this in a debugger:
Unfortunately I can't use the
"fn"
key's value, aJavaScriptFunction
appears to be an empty class and not invocable. I was expecting something likecontext["fn"].call(123)
so I could keep going.The text was updated successfully, but these errors were encountered: