Comparing version 0.2.21 to 0.2.22
@@ -33,3 +33,6 @@ /********************************************************************* | ||
getPropertyValue: function (name) { | ||
return this._values[name] || ""; | ||
if (!this._values.hasOwnProperty(name)) { | ||
return ""; | ||
} | ||
return this._values[name].toString(); | ||
}, | ||
@@ -36,0 +39,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["CSS", "CSSStyleDeclaration", "StyleSheet"], | ||
"version": "0.2.21", | ||
"version": "0.2.22", | ||
"homepage": "https://github.com/chad3814/CSSStyleDeclaration", | ||
@@ -8,0 +8,0 @@ "maintainers": [{ |
@@ -280,3 +280,10 @@ "use strict"; | ||
test.done(); | ||
}, | ||
'Setting a value to 0 should return the string value': function (test) { | ||
var style = new cssstyle.CSSStyleDeclaration(); | ||
test.expect(1); | ||
style.setProperty('fill-opacity', 0); | ||
test.ok('0' === style.fillOpacity, 'fillOpacity is not "0": ' + style.fillOpacity); | ||
test.done(); | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614640
16255