diff options
Diffstat (limited to 'alarm/node_modules/cssstyle/lib/properties/opacity.js')
-rw-r--r-- | alarm/node_modules/cssstyle/lib/properties/opacity.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/alarm/node_modules/cssstyle/lib/properties/opacity.js b/alarm/node_modules/cssstyle/lib/properties/opacity.js new file mode 100644 index 0000000..b26a3b6 --- /dev/null +++ b/alarm/node_modules/cssstyle/lib/properties/opacity.js @@ -0,0 +1,14 @@ +'use strict'; + +var parseNumber = require('../parsers').parseNumber; + +module.exports.definition = { + set: function(v) { + this._setProperty('opacity', parseNumber(v)); + }, + get: function() { + return this.getPropertyValue('opacity'); + }, + enumerable: true, + configurable: true, +}; |