Node-Red configuration
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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)