From 82a5ff966eddf89bfc5fbcaa39f404c89f4f9b28 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 14 Jan 2015 03:35:04 -0500 Subject: [PATCH] feature(edward) rm hideMenu --- lib/client/edit.js | 2 +- lib/client/edward.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 135ab3bc..8576a14d 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -29,7 +29,7 @@ var CloudCmd, Util, DOM, CloudFunc, io, ace, Zip, Format, MenuIO, edward; ConfigView = { beforeClose: function() { isChanged(); - edward.hideMenu(); + exec.ifExist(Menu, 'hide'); }, afterShow: function() { edward diff --git a/lib/client/edward.js b/lib/client/edward.js index 5f7cfa6a..d5ae3f38 100644 --- a/lib/client/edward.js +++ b/lib/client/edward.js @@ -1,4 +1,4 @@ -var join, ace, Util, DOM, MenuIO, CloudCmd; +var join, ace, Util, DOM; (function(global, join, DOM, exec, load, loadRemote) { 'use strict'; @@ -13,7 +13,6 @@ var join, ace, Util, DOM, MenuIO, CloudCmd; ElementMsg, Value, Ace, - Menu, edward = function(el, callback) { Element = el || document.body; @@ -151,10 +150,6 @@ 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) {