diff --git a/src/abstractions.js b/src/abstractions.js index 34714b5..8079915 100644 --- a/src/abstractions.js +++ b/src/abstractions.js @@ -300,11 +300,11 @@ */ PropertyDescriptor.prototype.toStringValue = function (elem, numericValue) { - if (numericValue.length === 0) { + if (numericValue.length === 1) { + return numericValue[0] + ( this.propName in toStringValueNoPX ? '' : 'px' ); + } else if (numericValue.length === 0) { return ''; - } else { - return numericValue + ( this.propName in toStringValueNoPX ? '' : 'px' ); - } + } // else ? };