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 }); }