| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,9 @@ | |||
| 37 | 37 | return value[0].toLowerCase() + value.slice(1); | |
| 38 | 38 | }); | |
| 39 | 39 | ||
| 40 | - resp.forEach(function(ctor) { | ||
| 40 | + resp.filter(function(ctor) { | ||
| 41 | + return ctor.jsClassName; | ||
| 42 | + }).forEach(function(ctor) { | ||
| 41 | 43 | // Add nav entry. | |
| 42 | 44 | var anchor = $("<a href='#" + ctor.jsClassName + "'><li>" + ctor.jsClassName + "</li><ul class='subnav'></ul></a>").appendTo(scrollable); | |
| 43 | 45 | ||
@@ -46,7 +48,7 @@ | |||
| 46 | 48 | ||
| 47 | 49 | content.append(contentOutput); | |
| 48 | 50 | ||
| 49 | - ctor.functions.forEach(function(func) { | ||
| 51 | + (ctor.functions||[]).forEach(function(func) { | ||
| 50 | 52 | var isPrototype = func.isPrototypeMethod ? "#" : "."; | |
| 51 | 53 | anchor.find(".subnav").append("<a href='#" + ctor.jsClassName + "/function/" + func.jsFunctionName + "'><li>" + ctor.jsClassName + isPrototype + func.jsFunctionName + "</li></a>"); | |
| 52 | 54 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments