mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-09 08:50:26 +00:00
remove unused html-direction variable
This commit is contained in:
parent
fa42e6c10a
commit
4d86493637
@ -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) {
|
||||
|
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user