mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
|
var compactable = require('./compactable');
|
||
|
|
||
|
function restoreWithComponents(property) {
|
||
|
var descriptor = compactable[property.name];
|
||
|
|
||
|
if (descriptor && descriptor.shorthand) {
|
||
|
return descriptor.restore(property, compactable);
|
||
|
} else {
|
||
|
return property.value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = restoreWithComponents;
|