mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-13 18:26:20 +02:00
fix: Rename use-auth.js to use-auth.jsx for JSX support
This commit is contained in:
2875 files changed
+459559
-2
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
module.exports = function walk(nodes, cb, bubble) {
|
||||
var i, max, node, result
|
||||
|
||||
for (i = 0, max = nodes.length; i < max; i += 1) {
|
||||
node = nodes[i]
|
||||
if (!bubble) {
|
||||
result = cb(node, i, nodes)
|
||||
}
|
||||
|
||||
if (result !== false && node.type === 'function' && Array.isArray(node.nodes)) {
|
||||
walk(node.nodes, cb, bubble)
|
||||
}
|
||||
|
||||
if (bubble) {
|
||||
cb(node, i, nodes)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user