Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
first = addedWindowIds[i];
second = destination;
}
const update = {
path,
spec: {
$set: {
direction,
first,
second,
},
},
};
// We cannot batch the updates together because we need to recalculate
// the new location for each new window
this.layout = updateTree(this.layout, [update]);
});
}
removeWindows(removedWindowIds, windowPaths) {
const removeUpdates = removedWindowIds
.map(windowId => (
createRemoveUpdate(this.layout, windowPaths[windowId])
));
this.layout = updateTree(this.layout, removeUpdates);
}
}