|
|
@@ -19,11 +19,13 @@ module.exports = {
|
|
|
update: function (value) {
|
|
|
var prop = this.prop
|
|
|
if (prop) {
|
|
|
- var isImportant = value.slice(-10) === '!important'
|
|
|
- ? 'important'
|
|
|
- : ''
|
|
|
- if (isImportant) {
|
|
|
- value = value.slice(0, -10).trim()
|
|
|
+ if (value){
|
|
|
+ var isImportant = value.slice(-10) === '!important'
|
|
|
+ ? 'important'
|
|
|
+ : ''
|
|
|
+ if (isImportant) {
|
|
|
+ value = value.slice(0, -10).trim()
|
|
|
+ }
|
|
|
}
|
|
|
this.el.style.setProperty(prop, value, isImportant)
|
|
|
if (this.prefixed) {
|