main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
471 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | let Container = require('./container')
|
---|
| 4 |
|
---|
| 5 | class 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 |
|
---|
| 22 | module.exports = AtRule
|
---|
| 23 | AtRule.default = AtRule
|
---|
| 24 |
|
---|
| 25 | Container.registerAtRule(AtRule)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.