Skip to content

Commit

Permalink
Merge pull request #190 from lanthaler/feature-callback-union-types
Browse files Browse the repository at this point in the history
Add support for union types to callbacks
  • Loading branch information
darobin committed Apr 9, 2013
2 parents dbb47f7 + f65d78e commit 82f0635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/core/webidl-oldschool.js
Expand Up @@ -388,7 +388,7 @@ define(
str = this.parseExtendedAttributes(str, obj);

// MEMBER
var match = /^\s*\b(.*?)\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(str);
var match = /^\s*(.*?)\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(str);
if (match) {
obj.type = "member";
var type = match[1];
Expand Down Expand Up @@ -848,7 +848,7 @@ define(
sn.text(">", span);
}
else {
sn.element("a", {}, span, it.datatype);
sn.element("a", {}, span, it.isUnionType ? "(" + it.datatype.join(" or ") + ")" : it.datatype);
}
if (it.nullable) sn.text(", nullable", dt);
if (it.defaultValue) {
Expand Down

0 comments on commit 82f0635

Please sign in to comment.