Skip to content

Commit f1f98d3

Browse files
committed
Filter out missing items
1 parent ea5d88e commit f1f98d3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/api.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,10 @@
5656
ctor.functions = ctor.functions || ctor.fields;
5757
}
5858

59-
(ctor.functions||[]).forEach(function(func) {
59+
(ctor.functions||[]).filter(Boolean).forEach(function(func) {
6060
var isPrototype = func.isPrototypeMethod ? "#" : ".";
6161
anchor.find(".subnav").append("<a href='#" + ctor.jsClassName + "/function/" + func.jsFunctionName + "'><li>" + ctor.jsClassName + isPrototype + func.jsFunctionName + "</li></a>");
6262
});
63-
64-
(ctor.fields||[]).forEach(function(field) {
65-
var isPrototype = "#";
66-
anchor.find(".subnav").append("<a href='#" + ctor.jsClassName + "/function/" + func.jsFunctionName + "'><li>" + ctor.jsClassName + isPrototype + func.jsFunctionName + "</li></a>");
67-
});
6863
});
6964

7065
// Size the navigation bar correctly.

0 commit comments

Comments
 (0)