From 4293eadf631be7259ea0c62b1831f8eb7a822130 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Feb 2017 10:44:06 +0200 Subject: [PATCH] fix(edit-names) menu --- client/edit-names.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/edit-names.js b/client/edit-names.js index 4ae20712..d6e84032 100644 --- a/client/edit-names.js +++ b/client/edit-names.js @@ -1,6 +1,6 @@ 'use strict'; -/* global CloudCmd, DOM, MenuIO */ +/* global CloudCmd, DOM */ const currify = require('currify/legacy'); const exec = require('execon'); @@ -13,7 +13,7 @@ CloudCmd.EditNames = function EditNamesProto(callback) { const alert = currify(Dialog.alert, TITLE); const EditNames = this; - let Menu; + let Menu, MenuIO; const ConfigView = { beforeClose: () => { exec.ifExist(Menu, 'hide'); @@ -144,6 +144,7 @@ CloudCmd.EditNames = function EditNamesProto(callback) { event.preventDefault(); !Menu && DOM.loadRemote('menu', (error) => { + MenuIO = window.MenuIO; let noFocus; const options = { beforeShow: (params) => {