You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

4 years ago
  1. "use strict";
  2. 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; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. 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; }
  5. var flexSpec = require('./flex-spec');
  6. var Declaration = require('../declaration');
  7. var FlexWrap =
  8. /*#__PURE__*/
  9. function (_Declaration) {
  10. _inheritsLoose(FlexWrap, _Declaration);
  11. function FlexWrap() {
  12. return _Declaration.apply(this, arguments) || this;
  13. }
  14. var _proto = FlexWrap.prototype;
  15. /**
  16. * Don't add prefix for 2009 spec
  17. */
  18. _proto.set = function set(decl, prefix) {
  19. var spec = flexSpec(prefix)[0];
  20. if (spec !== 2009) {
  21. return _Declaration.prototype.set.call(this, decl, prefix);
  22. }
  23. return undefined;
  24. };
  25. return FlexWrap;
  26. }(Declaration);
  27. _defineProperty(FlexWrap, "names", ['flex-wrap']);
  28. module.exports = FlexWrap;