mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(contact) hide: infinite loop
This commit is contained in:
parent
6d2b445867
commit
ec07038446
1 changed files with 0 additions and 15 deletions
|
|
@ -25,7 +25,6 @@ var CloudCmd, Util, DOM, olark;
|
|||
olark('api.box.onHide', Contact.hide);
|
||||
olark('api.box.onShrink', Contact.hide);
|
||||
|
||||
DOM.Events.addKey(listener);
|
||||
Util.exec(callback);
|
||||
});
|
||||
}
|
||||
|
|
@ -51,20 +50,6 @@ var CloudCmd, Util, DOM, olark;
|
|||
|
||||
function hide() {
|
||||
Key.setBind();
|
||||
|
||||
if (Inited)
|
||||
olark('api.box.hide');
|
||||
else
|
||||
init(Contact.hide);
|
||||
}
|
||||
|
||||
function listener(event) {
|
||||
var ESC = Key.ESC,
|
||||
isBind = Key.isBind(),
|
||||
key = event.keyCode;
|
||||
|
||||
if (!isBind && key === ESC)
|
||||
Contact.hide();
|
||||
}
|
||||
|
||||
init(callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue