'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var submenu = require('./submenu.js');

class MenuItem {
  constructor(domNode, namespace) {
    this.domNode = domNode;
    this.submenu = null;
    this.submenu = null;
    this.init(namespace);
  }
  init(namespace) {
    this.domNode.setAttribute("tabindex", "0");
    const menuChild = this.domNode.querySelector(`.${namespace}-menu`);
    if (menuChild) {
      this.submenu = new submenu["default"](this, menuChild);
    }
  }
}

exports["default"] = MenuItem;
//# sourceMappingURL=menu-item.js.map
