-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Doing it this way is more efficient than what
coerceAxis
, as posted in my other comment, does - ieLib.coerce
doesn't need to dive into sub-containers as much. But it also meansLib.coerce
doesn't have access totraceOut._template
, so if you want to use this pattern you need to explicitly createtraceOut.node
(and.link
) usingTemplate.newContainer
.Also, instead of
fxAttrs
you should useattributes.node
, sincefxAttrs
won't be quite right in this context.... and at that point, the rest of the
node
andlink
attribute coercion could be more efficient if they use the same coerce function: instead ofcoerce('node.label')
docoerceNode('label')
.