shuttle-app / node_modules /cssstyle /lib /utils /propertyDescriptors.js
ilyaRozhkovA's picture
Upload 1474 files
4086e5a verified
Raw
History Blame Contribute Delete
356 Bytes
"use strict";
const prepareValue = require("../parsers").prepareValue;
module.exports.getPropertyDescriptor = function getPropertyDescriptor(property) {
return {
set(v) {
this._setProperty(property, prepareValue(v));
},
get() {
return this.getPropertyValue(property);
},
enumerable: true,
configurable: true
};
};