bugfix
This commit is contained in:
parent
217ce0c09b
commit
ab2e35937d
@ -61,7 +61,7 @@ bricks.Menu = class extends bricks.VBox {
|
|||||||
this.create_children(w1, item.items);
|
this.create_children(w1, item.items);
|
||||||
subw.bind('click', w1.toggle_hide.bind(w1));
|
subw.bind('click', w1.toggle_hide.bind(w1));
|
||||||
} else {
|
} else {
|
||||||
subw.bind('click', this.menu_clicked.bind(this, item))
|
subw.bind('click', this.regen_menuitem_event.bind(this, item))
|
||||||
w.add_widget(subw);
|
w.add_widget(subw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -88,8 +88,6 @@ bricks.Menu = class extends bricks.VBox {
|
|||||||
w[k] = item[k];
|
w[k] = item[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// iw.bind('click', this.regen_menuitem_event.bind(this, item));
|
|
||||||
// tw.bind('click', this.regen_menuitem_event.bind(this, item));
|
|
||||||
iw.menuitem = w;
|
iw.menuitem = w;
|
||||||
tw.menuitem = w;
|
tw.menuitem = w;
|
||||||
w.set_css(this.menuitem_css || 'menuitem');
|
w.set_css(this.menuitem_css || 'menuitem');
|
||||||
|
Loading…
Reference in New Issue
Block a user