[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 flexSpec = require('./flex-spec');
|
---|
| 10 |
|
---|
| 11 | var Declaration = require('../declaration');
|
---|
| 12 |
|
---|
| 13 | var FlexWrap = /*#__PURE__*/function (_Declaration) {
|
---|
| 14 | _inheritsLoose(FlexWrap, _Declaration);
|
---|
| 15 |
|
---|
| 16 | function FlexWrap() {
|
---|
| 17 | return _Declaration.apply(this, arguments) || this;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | var _proto = FlexWrap.prototype;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Don't add prefix for 2009 spec
|
---|
| 24 | */
|
---|
| 25 | _proto.set = function set(decl, prefix) {
|
---|
| 26 | var spec = flexSpec(prefix)[0];
|
---|
| 27 |
|
---|
| 28 | if (spec !== 2009) {
|
---|
| 29 | return _Declaration.prototype.set.call(this, decl, prefix);
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | return undefined;
|
---|
| 33 | };
|
---|
| 34 |
|
---|
| 35 | return FlexWrap;
|
---|
| 36 | }(Declaration);
|
---|
| 37 |
|
---|
| 38 | _defineProperty(FlexWrap, "names", ['flex-wrap']);
|
---|
| 39 |
|
---|
| 40 | module.exports = FlexWrap; |
---|