From 51fbd7c620d83b8667b300f78dc97cd831d68fb1 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 14 Nov 2016 14:34:11 +0200 Subject: [PATCH] chore(listeners) rm " " --- lib/client/listeners.js | 54 ++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/client/listeners.js b/lib/client/listeners.js index 79a3ee65..f903f071 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -25,43 +25,43 @@ var Util, DOM, CloudFunc, CloudCmd; resize(); }; - this.initKeysPanel = function() { - var keysElement = DOM.getById('js-keyspanel'); + this.initKeysPanel = function() { + var keysElement = DOM.getById('js-keyspanel'); if (keysElement) Events.addClick(keysElement, function(event) { - var element = event.target, - id = element.id, - operation = function(name) { - var Operation = CloudCmd.Operation, - fn = Operation.show.bind(null, name); - - return fn; - }, + var element = event.target; + var id = element.id; + var operation = function(name) { + var Operation = CloudCmd.Operation; + var fn = Operation.show.bind(null, name); - clickFuncs = { - 'f1' : CloudCmd.Help.show, - 'f2' : DOM.renameCurrent, - 'f3' : CloudCmd.View.show, - 'f4' : CloudCmd.Edit.show, - 'f5' : operation('copy'), - 'f6' : operation('move'), - 'f7' : DOM.promptNewDir, - 'f8' : operation('delete'), - 'f9' : CloudCmd.Menu.show, - 'f10' : CloudCmd.Config.show, - '~' : CloudCmd.Konsole.show, - 'contact' : CloudCmd.Contact.show, - }, - - func = clickFuncs[id]; + return fn; + }; + + var clickFuncs = { + 'f1' : CloudCmd.Help.show, + 'f2' : DOM.renameCurrent, + 'f3' : CloudCmd.View.show, + 'f4' : CloudCmd.Edit.show, + 'f5' : operation('copy'), + 'f6' : operation('move'), + 'f7' : DOM.promptNewDir, + 'f8' : operation('delete'), + 'f9' : CloudCmd.Menu.show, + 'f10' : CloudCmd.Config.show, + '~' : CloudCmd.Konsole.show, + 'contact' : CloudCmd.Contact.show, + }; + + var func = clickFuncs[id]; if (func) func(); }); }; - this.setOnPanel = function(side) { + this.setOnPanel = function(side) { var panel, filesElement, pathElement;