diff --git a/bricks/bricks.js b/bricks/bricks.js index 3c2b497..902fda4 100644 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -501,8 +501,8 @@ bricks.getWidgetById = function(idset, from_widget){ console.log('get_by_id() return null',id, fromw, downward); return null; } - if (typeof(el.bricks_widget) !== 'undefined'){ - return el.bricks_widget; + if (typeof(nel.bricks_widget) !== 'undefined'){ + return nel.bricks_widget; } console.log('get_by_id() found dom_ele, but not bricks widget, return null',id, fromw, downward); return null;