aboutsummaryrefslogtreecommitdiff
path: root/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js')
-rw-r--r--node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js b/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js
new file mode 100644
index 0000000..ded2cc4
--- /dev/null
+++ b/node_modules/cssstyle/lib/utils/getBasicPropertyDescriptor.js
@@ -0,0 +1,14 @@
+'use strict';
+
+module.exports = function getBasicPropertyDescriptor(name) {
+ return {
+ set: function(v) {
+ this._setProperty(name, v);
+ },
+ get: function() {
+ return this.getPropertyValue(name);
+ },
+ enumerable: true,
+ configurable: true,
+ };
+};