fix(client) unload, beforeunload

This commit is contained in:
coderaiser 2013-09-06 11:08:01 +00:00
parent caad2c6057
commit b48d7ba7fa

View file

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