Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
destroyed() {
const gridManagerName = this.option.gridManagerName;
// 清除右键菜单
const menuDomList = document.querySelectorAll(`.grid-menu[grid-master="${gridManagerName}"]`);
[].forEach.call(menuDomList, menuDom => {
menuDom.parentNode.removeChild(menuDom);
});
// 销毁实例
$gridManager.destroy(gridManagerName);
}
};