mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
() around ternary operators
This commit is contained in:
@@ -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 + ")");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 + ")");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user