[[ HTML5Callbacks ]] Allow specified LiveCode handlers to be called from JavaScript #5602
[[ HTML5Callbacks ]] Allow specified LiveCode handlers to be called from JavaScript #5602
Conversation
Export functions required by JS library code Fix valueref parameter passed incorrectly to MCExecTypeConvertAndReleaseAlways Fix broken stacklist iteration in _emscripten_get_stack fix broken string building in LiveCodeUtil.stringFromMCString fix incorrect function names called from JS
Renamed to avoid overshadowing by real property once implemented
|
||
## Calling from JavaScript | ||
|
||
The standalone engine will create a `liveCode` object on the DOM `document` object. To this object will be attached the `findStackWithName` method that can be called to return a JavaScript stack object. Each stack object will have methods corresponding to the exposed handlers of that stack. For instance, a stack with the `cJavascriptHandlers` property set to : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we make the name 'livecode' - I think liveCode will be prone to errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
liveCode is consistent with the naming in the browser widget, although the usage there is slightly different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's fine - we'll keep it consistent for now - we can add an alias at a later date.
@livecode-vulcan review ok 93f1d75 |
💙 review by @runrevmark ok 93f1d75 |
[[ HTML5Callbacks ]] Allow specified LiveCode handlers to be called from JavaScript
😎 test success 93f1d75
|
This is an awesome addition. I am so looking forward to this feature. Thanks. |
No description provided.