diff --git a/bricks/bricks.js b/bricks/bricks.js index 212c666..af4f4b3 100755 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -296,6 +296,8 @@ bricks.buildDispatchEventHandler = function(w, target, rtdata, desc){ } bricks.getWidgetById = function(id, from_widget){ + if (!from_widget){ + from_widget = bricks.Body; if (! id){ return from_widget; }