From 64ba989bb92b4044965f94a4052834a26a84fd92 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 27 Dec 2013 10:19:39 +0000 Subject: [PATCH] chore(listeners) add " " --- lib/client/listeners.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/client/listeners.js b/lib/client/listeners.js index fe1f4045..7cdfa263 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -5,7 +5,7 @@ var Util, DOM, CloudCmd; CloudCmd.Listeners = new ListenersProto(CloudCmd, Util, DOM); - function ListenersProto(CloudCmd, Util, DOM){ + function ListenersProto(CloudCmd, Util, DOM) { var Info = DOM.CurrentInfo, Storage = DOM.Storage, Events = DOM.Events, @@ -17,11 +17,11 @@ var Util, DOM, CloudCmd; online = config.online; if (analytics && online) { - Events.addOnce('mousemove', function(){ + Events.addOnce('mousemove', function() { var FIVE_SECONDS = 5000, lUrl = CloudCmd.LIBDIRCLIENT + 'analytics.js'; - setTimeout(function(){ + setTimeout(function() { DOM.jsload(lUrl); }, FIVE_SECONDS); }); @@ -100,7 +100,7 @@ var Util, DOM, CloudCmd; a = DOM.getByTag('a', lPanel), /* right mouse click function varible */ - lOnContextMenu_f = function(pEvent){ + lOnContextMenu_f = function(pEvent) { var target, isFunc = Util.isFunction(CloudCmd.Menu), ret = true, @@ -152,7 +152,7 @@ var Util, DOM, CloudCmd; lLink); }, - lSetCurrentFile_f = function(pEvent){ + lSetCurrentFile_f = function(pEvent) { var pElement = pEvent.target, lTag = pElement.tagName; @@ -172,7 +172,7 @@ var Util, DOM, CloudCmd; Events.addClick( CloudCmd.refresh, a[0].parentElement ); /* start from 1 cous 0 is a refresh and it's setted up */ - for(var i = 1, n = a.length; i < n ; i++){ + for(var i = 1, n = a.length; i < n ; i++) { /* убираем адрес хоста*/ var ai = a[i], lLink = Util.removeStr(ai.href, lUrl), @@ -194,7 +194,7 @@ var Util, DOM, CloudCmd; Events.add('dragstart', lOnDragStart_f, ai); /* если ссылка на папку, а не файл */ - if(ai.target !== '_blank'){ + if (ai.target !== '_blank') { Events.add({ 'dblclick' : lLoadDirOnce, 'touchend' : lLoadDirOnce @@ -224,7 +224,7 @@ var Util, DOM, CloudCmd; } function contextMenu() { - Events.addContextMenu(function(pEvent){ + Events.addContextMenu(function(pEvent) { CloudCmd.Menu.ENABLED || DOM.preventDefault(pEvent); }, document); } @@ -244,7 +244,7 @@ var Util, DOM, CloudCmd; onDrop = function (event) { var reader, file, files, dir = Info.dirPath, - load = function(file){ + load = function(file) { return function(event) { var path = dir + file.name, data = event.target.result; @@ -284,7 +284,7 @@ var Util, DOM, CloudCmd; Key = CloudCmd.Key, lIsBind = Key && Key.isBind(); - if(!lIsBind) { + if (!lIsBind) { DOM.preventDefault(pEvent); lRet = 'Please make sure that you saved all work.'; }