scripting: special keyword this now returns the string "this"

This commit is contained in:
jean-emmanuel 2022-01-16 23:04:04 +01:00
parent e83f12eac4
commit c956d0d1e9
3 changed files with 8 additions and 2 deletions

View file

@ -6,7 +6,7 @@
- misc: sending typed arguments (`{type, value}` objects) should override the widget's `typeTags` definition
- multixy: errors when `ephemeral` is `true`
- scripting: `setVar` not affecting all widgets when mutliple widgets match provided id
- widgets
- renamed `script` to `onValue`, `draw` to `onDraw`, `touch` to `onTouch`
- added `onCreate` script property to all widgets
@ -14,6 +14,9 @@
- script: added `onKeyboard` property, removed `event` property
- canvas: expose additional touch event informations (`radiusX`, `radiusY`, `rotationAngle` and iOS-only `altitudeAngle`, `azimuthAngle` and `touchType`)
- scripting
- special keyword `this` now returns the string `"this"`
- advanced syntaxes
- added `IMPORT{file}` syntax to allow loading external files in properties