Refactor layout .show/.isShown to handle branch nodes

This commit is contained in:
Josh Ponelat
2017-10-18 13:07:38 +02:00
parent f1f29aa7e1
commit f6b86d2d33
3 changed files with 11 additions and 20 deletions

View File

@@ -37,17 +37,3 @@ export function changeMode(thing, mode="") {
payload: {thing, mode}
}
}
// export function onlyShow(thing, shown=true) {
// thing = normalizeArray(thing)
// if(thing.length < 2)
// throw new Error("layoutActions.onlyShow only works, when `thing` is an array with length > 1")
// return {
// type: ONLY_SHOW,
// payload: {thing, shown}
// }
// }