refactor(opearation) destructuring

This commit is contained in:
coderaiser 2018-02-19 15:25:19 +02:00
parent 196b72448d
commit 895e34856d

View file

@ -465,8 +465,11 @@ function OperationProto(operation, data) {
operation(files, (error) => {
!error && DOM.Storage.remove(from, () => {
const panel = Info.panel;
const panelPassive = Info.panelPassive;
const {
panel,
panelPassive,
} = Info;
const setCurrent = () => {
const currentName = name || data.names[0];
DOM.setCurrentByName(currentName);