() around ternary operators

This commit is contained in:
cloudhead
2010-02-28 01:03:22 -05:00
parent 1c955c8cb3
commit 35af01d29a
2 changed files with 2 additions and 2 deletions

View File

@@ -3,6 +3,6 @@ node.Alpha = function Alpha(val) {
};
node.Alpha.prototype = {
toCSS: function () {
return "alpha(opacity=" + this.value.toCSS ? this.value.toCSS() : this.value + ")";
return "alpha(opacity=" + (this.value.toCSS ? this.value.toCSS() : this.value + ")");
}
};

View File

@@ -4,6 +4,6 @@ node.URL = function URL(val) {
};
node.URL.prototype = {
toCSS: function () {
return "url(" + this.value.toCSS ? this.value.toCSS() : this.value + ")";
return "url(" + (this.value.toCSS ? this.value.toCSS() : this.value + ")");
}
};