From 897173b72151da29bd5e3bae329ac00c757b6fcc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 13 Jan 2015 11:00:56 -0500 Subject: [PATCH] feature(edward) add hideMenu --- lib/client/edit.js | 3 +-- lib/client/edward.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 77a0a523..7049b647 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -14,7 +14,6 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, Zip, Format, edward; exec = Util.exec, join = CloudCmd.join, FileName, - Menu, Value, Edit = this, Diff, @@ -28,7 +27,7 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, Zip, Format, edward; ConfigView = { beforeClose: function() { isChanged(); - exec.ifExist(Menu, 'hide'); + edward.hideMenu(); }, afterShow: function() { edward diff --git a/lib/client/edward.js b/lib/client/edward.js index c363d73a..d176d440 100644 --- a/lib/client/edward.js +++ b/lib/client/edward.js @@ -152,6 +152,10 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; }, HIDE_TIME); }; + edward.hideMenu = function() { + exec.ifExist(Menu, 'hide'); + }; + function onDrop(event) { var reader, files, onLoad = function(event) {