mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(config, consoke, key) rm unused vars
This commit is contained in:
parent
0bfd0ad2e6
commit
f7fc89f4a0
3 changed files with 6 additions and 10 deletions
|
|
@ -19,7 +19,7 @@ var CloudCmd, Util, DOM;
|
|||
Notify = DOM.Notify,
|
||||
Config = this;
|
||||
|
||||
function init(pCallBack) {
|
||||
function init() {
|
||||
Loading = true;
|
||||
|
||||
showLoad();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
|
||||
CloudCmd.Console = ConsoleProto;
|
||||
|
||||
function ConsoleProto(CallBack) {
|
||||
function ConsoleProto() {
|
||||
var Name = 'Console',
|
||||
Buffer = {
|
||||
log : '',
|
||||
|
|
@ -15,7 +15,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
Element,
|
||||
MouseBinded,
|
||||
Socket,
|
||||
Key = CloudCmd.Key,
|
||||
Images = DOM.Images,
|
||||
Notify = DOM.Notify,
|
||||
|
||||
|
|
|
|||
|
|
@ -83,8 +83,7 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
function listener(pEvent) {
|
||||
/* получаем выдленный файл*/
|
||||
var i, n,
|
||||
lKeyCode = pEvent.keyCode,
|
||||
var lKeyCode = pEvent.keyCode,
|
||||
lAlt = pEvent.altKey,
|
||||
ctrl = pEvent.ctrlKey;
|
||||
/* если клавиши можно обрабатывать*/
|
||||
|
|
@ -112,12 +111,11 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
function setCurrentByLetter(pKeyCode) {
|
||||
var i, n, name, isCurrent, isMatch, byName, firstByName,
|
||||
var i, n, name, isMatch, byName, firstByName,
|
||||
skipCount = 0,
|
||||
skipN = 0,
|
||||
setted = false,
|
||||
current = Info.element,
|
||||
panel = Info.panel,
|
||||
files = Info.files,
|
||||
char = String.fromCharCode(pKeyCode),
|
||||
regExp = new RegExp('^' + char + '.*$', 'i');
|
||||
|
|
@ -162,11 +160,10 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
|
||||
function switchKey(pEvent) {
|
||||
var i, n, id, obj, files,
|
||||
var i, id, obj, files,
|
||||
current = Info.element,
|
||||
panel = Info.panel,
|
||||
path = Info.path,
|
||||
dirPath = Info.dirPath,
|
||||
filesPassive = Info.filesPassive,
|
||||
prev = current.previousSibling,
|
||||
next = current.nextSibling,
|
||||
|
|
@ -457,4 +454,4 @@ var CloudCmd, Util, DOM;
|
|||
}
|
||||
}
|
||||
|
||||
})(CloudCmd, Util, DOM);
|
||||
})(CloudCmd, Util, DOM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue