diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index 2c09641b0..9db3ceba8 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -476,15 +476,25 @@ Widget.prototype.removeChildDomNodes = function() { }; /* -Invoke any action widgets that are immediate children of this widget +Invoke any action widgets that are descendants of this widget. */ Widget.prototype.invokeActions = function(event) { + return this.invokeActionCall(this, event); +}; + +/* +Recursively search through descendants, invoking all actions encountered. +*/ +Widget.prototype.invokeActionCall = function(here, event) { var handled = false; - for(var t=0; t