From f3ec6246c8aebb686cd25f1dd9efca47ae7a26e4 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 2 Jun 2014 10:54:01 -0400 Subject: [PATCH] refactor(edit) showMessage --- lib/client/edit.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 2cf497f9..4a618423 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -462,8 +462,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI } this.showMessage = function(text) { - var parent, - HIDE_TIME = 2000; + var HIDE_TIME = 2000; if (Msg) { Msg.innerHTML = text; @@ -482,12 +481,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI 'transition' + ': ease 0.5s;' + '}' }); - parent = Element; Msg = DOM.load({ name : 'div', className : 'msg', - parent : parent, + parent : Element, inner : text }); }