We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f92772 commit 7d4a35aCopy full SHA for 7d4a35a
src/app.js
@@ -1,4 +1,3 @@
1
-console.log("DEV")
2
module.exports = options => {
3
const defer = (fn, data) => {
4
setTimeout(_ => fn(data), 0)
src/h.js
@@ -1,20 +1,20 @@
const svg = (tag, data, tree) => {
data.ns = "http://www.w3.org/2000/svg"
-
+
tree.forEach(node => {
5
if (node.data) {
6
svg(node.tag, node.data, node.tree)
7
}
8
})
9
10
11
-module.exports = (tag, data, tree) => {
+module.exports = function (tag, data, tree) {
12
if (tag === "svg") {
13
svg(tag, data, tree)
14
15
16
return {
17
- tag,
+ tag: tag,
18
data: data || {},
19
tree: [].concat.apply([], tree)
20
0 commit comments