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
This does appear to be an issue. I think this is because the callback gets turned into an InterpretedFunction object by metajs.
I copy-pasted the code you have here into the metajs editor at http://int3.github.com/metajs, and added the following line:
window.f = function(data){ console.log(data); }
Then I typed f into the console to show the type. Then I tried
f('test')
which fails with a TypeError since f is an object (InterpretedFunction) not an actual function.
So my guess as to the resolution of this issue is for metajs to resolve functions to actual functions instead of InterpretedFunction, and instead attach the properties that InterpretedFunction uses under the function object. That way, non-metajs JavaScript should interop properly with metajs JavaScript.
Hey!
Nice project. I wonder why this code does not work:
Any clues?
Thanks!
Bartek
The text was updated successfully, but these errors were encountered: