How can you define a callback function to pass to ...
# javascript
b
How can you define a callback function to pass to a javascript library such that the 'context' (
this
) of the callback function is correct? I tried making it a receiver function on that type, but it says those are not allowed.
From what dukat generates, it looks like the 'context' is passed as the first argument, but from what I've seen when actually running code that isn't the case.