Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
---|
| 4 |
|
---|
| 5 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
---|
| 6 |
|
---|
| 7 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
---|
| 8 |
|
---|
| 9 | var Declaration = require('../declaration');
|
---|
| 10 |
|
---|
| 11 | var utils = require('../utils');
|
---|
| 12 |
|
---|
| 13 | var Appearance = /*#__PURE__*/function (_Declaration) {
|
---|
| 14 | _inheritsLoose(Appearance, _Declaration);
|
---|
| 15 |
|
---|
| 16 | function Appearance(name, prefixes, all) {
|
---|
| 17 | var _this;
|
---|
| 18 |
|
---|
| 19 | _this = _Declaration.call(this, name, prefixes, all) || this;
|
---|
| 20 |
|
---|
| 21 | if (_this.prefixes) {
|
---|
| 22 | _this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
---|
| 23 | if (i === '-ms-') {
|
---|
| 24 | return '-webkit-';
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | return i;
|
---|
| 28 | }));
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | return _this;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | return Appearance;
|
---|
| 35 | }(Declaration);
|
---|
| 36 |
|
---|
| 37 | _defineProperty(Appearance, "names", ['appearance']);
|
---|
| 38 |
|
---|
| 39 | module.exports = Appearance; |
---|
Note:
See
TracBrowser
for help on using the repository browser.