1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-09 17:00:27 +00:00

remove unused html-direction variable

This commit is contained in:
BurningTreeC 2024-10-20 19:55:11 +02:00
parent fa42e6c10a
commit 4d86493637
2 changed files with 0 additions and 2 deletions

View File

@ -79,7 +79,6 @@ EventWidget.prototype.render = function(parent,nextSibling) {
if(actions) { if(actions) {
// Add a variable for the modifier key // Add a variable for the modifier key
variables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event); variables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event);
variables["html-direction"] = domNode.ownerDocument.getElementsByTagName("html")[0].getAttribute("dir") || "ltr";
// Add a variable for the mouse button // Add a variable for the mouse button
if("button" in event) { if("button" in event) {
if(event.button === 0) { if(event.button === 0) {

View File

@ -42,7 +42,6 @@ The content of the `<$eventcatcher>` widget is displayed normally.
The following variables are made available to the actions: The following variables are made available to the actions:
|!Variables |!Description | |!Variables |!Description |
|`html-direction` |<<.from-version "5.3.6">> The value of the ''dir'' attribute on the `html` element |
|`dom-*` |All DOM attributes of the node matching the given selector are made available as variables, with the prefix `dom-` | |`dom-*` |All DOM attributes of the node matching the given selector are made available as variables, with the prefix `dom-` |
|`modifier` |The [[modifier Variable]] contains the Modifier Key held during the event (can be "normal", "ctrl", "shift", "alt" or combinations thereof) | |`modifier` |The [[modifier Variable]] contains the Modifier Key held during the event (can be "normal", "ctrl", "shift", "alt" or combinations thereof) |
|`event-mousebutton` |The mouse button (if any) used to trigger the event (can be "left", "right" or "middle"). Note that not all event types support the mousebutton property | |`event-mousebutton` |The mouse button (if any) used to trigger the event (can be "left", "right" or "middle"). Note that not all event types support the mousebutton property |