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

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

Fix frontend appearance

  • Property mode set to 100644
File size: 462 bytes
Line 
1"use strict";
2module.exports = function walk(nodes, cb, bubble) {
3 var i, max, node, result;
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 if (result !== false && node.type === "function" && Array.isArray(node.nodes)) {
10 walk(node.nodes, cb, bubble);
11 }
12 if (bubble) {
13 cb(node, i, nodes);
14 }
15 }
16};
Note: See TracBrowser for help on using the repository browser.