Blame view

node_modules/postcss/lib/at-rule.js 471 Bytes
7820380e   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  '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)