fix(key) panel -> files

This commit is contained in:
coderaiser 2013-12-05 16:35:57 +00:00
parent 424cf51c1a
commit 14eeffb01f

View file

@ -102,14 +102,13 @@ var CloudCmd, Util, DOM;
function setCurrentByLetter(pKeyCode) {
var i, n, name, isCurrent, isContain,
lCurrent = DOM.getCurrentFile(),
panel = DOM.getPanel(),
nodes = panel.childNodes,
files = DOM.getFiles(),
SMALL = 32,
char = String.fromCharCode(pKeyCode + SMALL);
n = nodes.length;
n = files.length;
for (i = 2; i < n; i++) {
lCurrent = panel.childNodes[i];
lCurrent = files[i];
name = DOM.getCurrentName(lCurrent);
isContain = Util.isContainStrAtBegin(name, char);