refactor(listeners) isNoCurrent

This commit is contained in:
coderaiser 2018-05-11 10:24:14 +03:00
parent 493edf8cc5
commit bb44a14780

View file

@ -171,11 +171,8 @@ function isNoCurrent(panel) {
const infoPanel = Info.panel;
const namePanel = panel.getAttribute('data-name');
const nameInfoPanel = infoPanel.getAttribute('data-name');
if (namePanel !== nameInfoPanel)
return true;
return false;
return namePanel !== nameInfoPanel
}
function decodePath(path){