diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:25:41 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:25:41 +0100 |
| commit | b5768bced10c6dafe8bc621c6ef01aa0bd9d975c (patch) | |
| tree | f6cd37ba5dad336f72d6a7e9c688eb177de0c23f /lib/html | |
| parent | 3047481420f215fb60b0380fa187975948ba54be (diff) | |
Store children in thunks when generating HTML nodes
Diffstat (limited to 'lib/html')
| -rw-r--r-- | lib/html/index.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/html/index.js b/lib/html/index.js index edc8256..600d783 100644 --- a/lib/html/index.js +++ b/lib/html/index.js @@ -7,15 +7,6 @@ exports.selfClosingElement = ast.selfClosingElement; exports.text = ast.text; exports.forceWrite = ast.forceWrite; -function pathToNodes(path, children) { - var result = children; - for (var index = path.length - 1; index >= 0; index--) { - result = [ast.elementWithTag(path[index], result)]; - } - return result; -} - -exports.pathToNodes = pathToNodes; exports.simplify = require("./simplify"); function write(writer, nodes) { |
