mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(client) unload, beforeunload
This commit is contained in:
parent
caad2c6057
commit
b48d7ba7fa
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
Util.ifExec(document.body.scrollIntoViewIfNeeded, lCallBack, lFunc);
|
||||
|
||||
DOM.Events.add(['unload', 'beforeunload'], function (pEvent) {
|
||||
var lRet, lIsBind = Key.isBind();
|
||||
var lRet, lIsBind = Key && Key.isBind();
|
||||
|
||||
if(!lIsBind) {
|
||||
DOM.preventDefault(pEvent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue