Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
show(ev) {
ev.stopPropagation();
ev.preventDefault();
// This is to use a menu-bar > menu as a contextmenu
const newNode = this.$element.cloneNode(true);
Menu.create(null, ev, newNode);
}
this._close();
}
};
}]
];
const list = [];
control.forEach((iter) => {
if (iter[0] ) {
list.push(iter[1]());
}
});
this._focus();
Menu.create(list, ev);
}