1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 06:38:19 +00:00

Coding style tweaks

This commit is contained in:
Jermolene 2015-03-10 20:04:34 +00:00
parent ab9bdb208e
commit 657c266522

View File

@ -479,20 +479,20 @@ Widget.prototype.removeChildDomNodes = function() {
Invoke any action widgets that are descendants of this widget. Invoke any action widgets that are descendants of this widget.
*/ */
Widget.prototype.invokeActions = function(event) { Widget.prototype.invokeActions = function(event) {
return this.invokeActionCall(this, event); return this.invokeActionCall(this,event);
}; };
/* /*
Recursively search through descendants, invoking all actions encountered. Recursively search through descendants, invoking all actions encountered.
*/ */
Widget.prototype.invokeActionCall = function(here, event) { Widget.prototype.invokeActionCall = function(here,event) {
var handled = false; var handled = false;
for(var t=0; t<here.children.length; t++) { for(var t=0; t<here.children.length; t++) {
var child = here.children[t]; var child = here.children[t];
if(child.invokeAction && child.invokeAction(this,event)) { if(child.invokeAction && child.invokeAction(this,event)) {
handled = true; handled = true;
} }
if(this.invokeActionCall(child, event)) { if(this.invokeActionCall(child,event)) {
handled = true; handled = true;
} }
} }