From b48d7ba7fab93cee170107d15ec9f9af9421e330 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 6 Sep 2013 11:08:01 +0000 Subject: [PATCH] fix(client) unload, beforeunload --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 853a6846..fa1965c2 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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);