Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

at-rule.js 471B

12345678910111213141516171819202122232425
  1. 'use strict'
  2. let Container = require('./container')
  3. class AtRule extends Container {
  4. constructor(defaults) {
  5. super(defaults)
  6. this.type = 'atrule'
  7. }
  8. append(...children) {
  9. if (!this.proxyOf.nodes) this.nodes = []
  10. return super.append(...children)
  11. }
  12. prepend(...children) {
  13. if (!this.proxyOf.nodes) this.nodes = []
  14. return super.prepend(...children)
  15. }
  16. }
  17. module.exports = AtRule
  18. AtRule.default = AtRule
  19. Container.registerAtRule(AtRule)