All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.at-rule.js Maven / Gradle / Ivy

There is a newer version: 8.4.49
Show newest version
'use strict'

let Container = require('./container')

class AtRule extends Container {
  constructor(defaults) {
    super(defaults)
    this.type = 'atrule'
  }

  append(...children) {
    if (!this.proxyOf.nodes) this.nodes = []
    return super.append(...children)
  }

  prepend(...children) {
    if (!this.proxyOf.nodes) this.nodes = []
    return super.prepend(...children)
  }
}

module.exports = AtRule
AtRule.default = AtRule

Container.registerAtRule(AtRule)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy