Skip to content

Commit

Permalink
fix(core/webidl): warning message typo (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Cáceres committed Sep 28, 2017
1 parent be72c6e commit 6066b5f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/core/webidl.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ function idlType2Text(idlType) {
);
}
if (idlType.generic) {
const types = [].concat(idlType.idlType).map(idlType2Text).join(", ");
const types = []
.concat(idlType.idlType)
.map(idlType2Text)
.join(", ");
return `${idlType.generic}<${types}>${nullable}`;
}
return idlType2Text(idlType.idlType) + nullable;
Expand Down Expand Up @@ -1084,8 +1087,8 @@ function findDfn(parent, name, definitionMap, type, idlElem) {
if (dfns.length > 1) {
pub(
"error",
`Multiple \`<dfn>\`s for \`${originalName}${originalParent
? ` in \`${originalParent}\``
`Multiple \`<dfn>\`s for \`${originalName}\` ${originalParent
? `in \`${originalParent}\``
: ""}`
);
}
Expand Down Expand Up @@ -1133,7 +1136,10 @@ export function run(conf, doc, cb) {
}
registerHelpers();
if (!$(".idl", doc).not("pre").length) {
$(doc).find("head link").first().before($("<style/>").text(css));
$(doc)
.find("head link")
.first()
.before($("<style/>").text(css));
}

$idl.each(function() {
Expand Down

0 comments on commit 6066b5f

Please sign in to comment.