123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- "use strict";
- exports.__esModule = true;
- exports.default = void 0;
- var _container = _interopRequireDefault(require("./container"));
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
- var AtRule = function (_Container) {
- _inheritsLoose(AtRule, _Container);
- function AtRule(defaults) {
- var _this;
- _this = _Container.call(this, defaults) || this;
- _this.type = 'atrule';
- return _this;
- }
- var _proto = AtRule.prototype;
- _proto.append = function append() {
- var _Container$prototype$;
- if (!this.nodes) this.nodes = [];
- for (var _len = arguments.length, children = new Array(_len), _key = 0; _key < _len; _key++) {
- children[_key] = arguments[_key];
- }
- return (_Container$prototype$ = _Container.prototype.append).call.apply(_Container$prototype$, [this].concat(children));
- };
- _proto.prepend = function prepend() {
- var _Container$prototype$2;
- if (!this.nodes) this.nodes = [];
- for (var _len2 = arguments.length, children = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- children[_key2] = arguments[_key2];
- }
- return (_Container$prototype$2 = _Container.prototype.prepend).call.apply(_Container$prototype$2, [this].concat(children));
- }
-
-
-
- ;
- return AtRule;
- }(_container.default);
- var _default = AtRule;
- exports.default = _default;
- module.exports = exports.default;
|