mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Move collectDOMVariables() into actions
This commit is contained in:
parent
961e74f73d
commit
1c87c85119
@ -67,13 +67,11 @@ EventWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
if(selectedNode === domNode) {
|
if(selectedNode === domNode) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Only set up variables if we have actions to invoke
|
|
||||||
if(actions) {
|
|
||||||
variables = $tw.utils.collectDOMVariables(selectedNode,self.domNode,event);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Execute our actions with the variables
|
// Execute our actions with the variables
|
||||||
if(actions) {
|
if(actions) {
|
||||||
|
// Set up DOM variables
|
||||||
|
variables = $tw.utils.collectDOMVariables(selectedNode,self.domNode,event);
|
||||||
// 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);
|
||||||
// Add a variable for the mouse button
|
// Add a variable for the mouse button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user