diff --git a/bricks/menu.js b/bricks/menu.js index 83e072a..61dc852 100644 --- a/bricks/menu.js +++ b/bricks/menu.js @@ -17,12 +17,11 @@ bricks.Menu = class extends bricks.VScrollPanel { this.dom_element.style.backgroundColor = options.bgcolor || "white"; this.build_title(); this.build_description(); - this.user_data = opts; + this.user_data = this.opts; this.bind('item_click', this.menu_clicked.bind(this)); this.container = new bricks.VBox({}); - this.container.user_data = opts; this.add_widget(this.container); - schedule_once(this.create_children.bind(this, this, this.opts.items), 0.1); + schedule_once(this.create_children.bind(this, this), 0.1); } create_submenu_container(){ let cp = new bricks.VBox({});