refactor(edit) showMessage

This commit is contained in:
coderaiser 2014-06-02 10:54:01 -04:00
parent 2cf8db4018
commit f3ec6246c8

View file

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