fix(edit) if menu not loaded -> not close

This commit is contained in:
coderaiser 2014-05-16 09:58:09 -04:00
parent 1ce1bfbd37
commit ad73ca00bb

View file

@ -98,7 +98,9 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
CloudCmd.View.show(Element, {
beforeClose: function() {
isChanged();
Menu.hide();
if (Menu)
Menu.hide();
},
afterShow: focus
});