From 3b4aa3741365c8425cfd276c1d19542bf4ce7b5c Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 25 May 2015 06:56:29 -0400 Subject: [PATCH] fix(edit) setMenu: try to show before MenuIO loaded --- lib/client/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 2726fcf1..0af8b638 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -194,7 +194,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward; if (error) { alert(error); - } else if (!Menu) { + } else if (!Menu && MenuIO) { Menu = new MenuIO(Element, options, menuData); Menu.show(position.x, position.y);