source: frontend/node_modules/tailwindcss/src/value-parser/walk.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 395 bytes
Line 
1module.exports = function walk(nodes, cb, bubble) {
2 var i, max, node, result
3
4 for (i = 0, max = nodes.length; i < max; i += 1) {
5 node = nodes[i]
6 if (!bubble) {
7 result = cb(node, i, nodes)
8 }
9
10 if (result !== false && node.type === 'function' && Array.isArray(node.nodes)) {
11 walk(node.nodes, cb, bubble)
12 }
13
14 if (bubble) {
15 cb(node, i, nodes)
16 }
17 }
18}
Note: See TracBrowser for help on using the repository browser.