fix(key) current -> current && current.parent;

This commit is contained in:
coderaiser 2013-10-02 13:53:53 +00:00
parent b3b0e1da1a
commit f41b3f021d

View file

@ -89,7 +89,7 @@ var CloudCmd, Util, DOM;
lId = lPanel.id;
lCurrent = lTabPanel[lId];
if (lCurrent)
if (lCurrent && lCurrent.parentElement)
DOM.setCurrentFile(lCurrent);
else {
lFirstFileOnList = DOM.getByTag('li', lPanel)[2];