CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
at-rule.js26 linesDownload Raw Back to lib
1'use strict'2 3let Container = require('./container')4 5class AtRule extends Container {6  constructor(defaults) {7    super(defaults)8    this.type = 'atrule'9  }10 11  append(...children) {12    if (!this.proxyOf.nodes) this.nodes = []13    return super.append(...children)14  }15 16  prepend(...children) {17    if (!this.proxyOf.nodes) this.nodes = []18    return super.prepend(...children)19  }20}21 22module.exports = AtRule23AtRule.default = AtRule24 25Container.registerAtRule(AtRule)26