Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
18
node_modules/tailwindcss/src/value-parser/walk.js
generated
vendored
Normal file
18
node_modules/tailwindcss/src/value-parser/walk.js
generated
vendored
Normal file
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue