Skip to content

Commit

Permalink
Merge pull request #515 from dontcallmedom/doublecomma-295
Browse files Browse the repository at this point in the history
Avoid double commas bug in WebIDL oldschool
  • Loading branch information
Marcos Caceres committed Nov 4, 2015
2 parents bbb924b + 2f4a589 commit 533f3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/core/webidl-oldschool.js
Expand Up @@ -891,7 +891,7 @@ define(
else {
sn.element("a", {}, span, it.isUnionType ? "(" + it.datatype.join(" or ") + ")" : it.datatype);
}
if (it.declaration) sn.text(", " + it.declaration, dt);
if (it.declaration.trim()) sn.text(", " + it.declaration, dt);
if (it.nullable) sn.text(", nullable", dt);
if (this.conf.idlOldStyleExceptions && it.raises.length) {
var table = sn.element("table", { "class": "exceptions" }, desc);
Expand Down Expand Up @@ -1092,7 +1092,7 @@ define(
else {
sn.element("a", {}, span, it.isUnionType ? "(" + it.datatype.join(" or ") + ")" : it.datatype);
}
if (it.declaration) sn.text(", " + it.declaration, dt);
if (it.declaration.trim()) sn.text(", " + it.declaration, dt);
if (it.nullable) sn.text(", nullable", dt);
if (it.defaultValue) {
sn.text(", defaulting to ", dt);
Expand Down

0 comments on commit 533f3db

Please sign in to comment.