Skip to content

Commit

Permalink
feat(vTreeParser): Add support for a static vTree option
Browse files Browse the repository at this point in the history
Allows skipping transposition on vTree's that have static
defined as true on their data object.

Closes #59
  • Loading branch information
TylorS committed Dec 29, 2015
1 parent 56cad78 commit 89e2ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vTreeParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const combineVTreeStreams =

const vTreeParser =
vTree => {
if (!vTree) {
if (vTree.data && vTree.data.static) {
return most.just(vTree)
} else if (!vTree) {
return null
} else if (vTree.observe) {
return vTree.map(vTreeParser).switch()
Expand Down

0 comments on commit 89e2ba1

Please sign in to comment.