From 4d864936375e3592b093f4a463909c9f0eae466d Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 20 Oct 2024 19:55:11 +0200 Subject: [PATCH] remove unused html-direction variable --- core/modules/widgets/eventcatcher.js | 1 - editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid | 1 - 2 files changed, 2 deletions(-) diff --git a/core/modules/widgets/eventcatcher.js b/core/modules/widgets/eventcatcher.js index 75595e2e2..dad9503c6 100644 --- a/core/modules/widgets/eventcatcher.js +++ b/core/modules/widgets/eventcatcher.js @@ -79,7 +79,6 @@ EventWidget.prototype.render = function(parent,nextSibling) { if(actions) { // Add a variable for the modifier key variables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event); - variables["html-direction"] = domNode.ownerDocument.getElementsByTagName("html")[0].getAttribute("dir") || "ltr"; // Add a variable for the mouse button if("button" in event) { if(event.button === 0) { diff --git a/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid b/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid index a3777a2f3..870f15c8a 100644 --- a/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid @@ -42,7 +42,6 @@ The content of the `<$eventcatcher>` widget is displayed normally. The following variables are made available to the actions: |!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-` | |`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 |