From 1019364f2383e76f5c8f77f50b347bde668adf87 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 22 Aug 2013 15:57:28 +0000 Subject: [PATCH] chore(client) rm " " --- lib/client.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/client.js b/lib/client.js index 6ba2d8c6..e1eb926e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -253,21 +253,22 @@ var Util, DOM, CloudFunc, CloudCmd; Util.exec(pCallBack); } - function baseInit(pCallBack){ - if(window.applicationCache){ - Events.add('updateready', function(){ + function baseInit(pCallBack) { + if (window.applicationCache) + Events.add('updateready', function() { Util.log('app cacheed'); location.reload(); }, applicationCache); - } /* загружаем общие функции для клиента и сервера */ - DOM.jsload(CloudCmd.LIBDIR + 'cloudfunc.js', function(){ + DOM.jsload(CloudCmd.LIBDIR + 'cloudfunc.js', function() { Events.add("popstate", function(pEvent) { var lPath = pEvent.state + '?json'; if(lPath) - ajaxLoad(lPath, {nohistory: true}); + ajaxLoad(lPath, { + nohistory: true + }); return true; }); @@ -279,7 +280,7 @@ var Util, DOM, CloudFunc, CloudCmd; Cache.setAllowed(true); /* Устанавливаем кэш корневого каталога */ var lDirPath = DOM.getCurrentDirPath(); - if( !Cache.get(lDirPath) ) + if (!Cache.get(lDirPath)) Cache.set(lDirPath, getJSONfromFileTable()); });