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.

13 lines
319 B

4 years ago
  1. var compactable = require('./compactable');
  2. function restoreWithComponents(property) {
  3. var descriptor = compactable[property.name];
  4. if (descriptor && descriptor.shorthand) {
  5. return descriptor.restore(property, compactable);
  6. } else {
  7. return property.value;
  8. }
  9. }
  10. module.exports = restoreWithComponents;