scripting: special keyword this now returns the string "this"
This commit is contained in:
parent
e83f12eac4
commit
c956d0d1e9
3 changed files with 8 additions and 2 deletions
|
|
@ -111,6 +111,9 @@ The following variables and functions are accessible in this context.
|
|||
- `session`: session file path
|
||||
- `clipboard`: instance of navigator [Clipboard](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard)
|
||||
|
||||
!!! note "this"
|
||||
Unlike in most javascript contexts, the special keyword `this` doesn't point to an object but instead returns the string `"this"`.
|
||||
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue