main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
---|
4 |
|
---|
5 | function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
---|
6 |
|
---|
7 | function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
---|
8 |
|
---|
9 | // Generated by CoffeeScript 2.5.1
|
---|
10 | var DeclarationBlock, Rule, Selector;
|
---|
11 | Selector = require('./rule/Selector');
|
---|
12 | DeclarationBlock = require('./rule/DeclarationBlock');
|
---|
13 |
|
---|
14 | module.exports = Rule = /*#__PURE__*/function () {
|
---|
15 | function Rule(selector) {
|
---|
16 | _classCallCheck(this, Rule);
|
---|
17 |
|
---|
18 | this.selector = new Selector(selector);
|
---|
19 | this.styles = new DeclarationBlock();
|
---|
20 | }
|
---|
21 |
|
---|
22 | _createClass(Rule, [{
|
---|
23 | key: "setStyles",
|
---|
24 | value: function setStyles(styles) {
|
---|
25 | this.styles.set(styles);
|
---|
26 | return this;
|
---|
27 | }
|
---|
28 | }]);
|
---|
29 |
|
---|
30 | return Rule;
|
---|
31 | }(); |
---|
Note:
See
TracBrowser
for help on using the repository browser.