vending-machine/mobile/node_modules/cssstyle/lib/utils/propertyDescriptors.js
2026-04-03 06:07:13 +08:00

17 lines
356 B
JavaScript

"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
};
};