afe01a436068b0013787a3be123e50fa6a24934907e19ea6887dc6a99e5b12de8217563c3b5d606b27667003ca7c680404bab9ca0a915d3a3f26b7163da19b 431 B

12345678910111213141516171819
  1. import MenuItem from './menu-item.mjs';
  2. class Menu {
  3. constructor(domNode, namespace) {
  4. this.domNode = domNode;
  5. this.init(namespace);
  6. }
  7. init(namespace) {
  8. const menuChildren = this.domNode.childNodes;
  9. Array.from(menuChildren).forEach((child) => {
  10. if (child.nodeType === 1) {
  11. new MenuItem(child, namespace);
  12. }
  13. });
  14. }
  15. }
  16. export { Menu as default };
  17. //# sourceMappingURL=menu-bar.mjs.map