diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js index c1bb1dab87..ef98c13aaf 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/template.js @@ -243,8 +243,10 @@ function filter() { //var name1 = qualName1.slice(qualName1.indexOf("#") + 1); var showByOwned = true; if ($(this).parents(".parent").length == 0) { - // owner filtering must not happen in "inherited from" member lists - var owner1 = qualName1.slice(0, qualName1.indexOf("#")); + // owner filtering must not happen in "inherited from" member lists + var ownerIndex = qualName1.indexOf("#"); + if (ownerIndex < 0) { ownerIndex = qualName1.lastIndexOf("."); } + var owner1 = qualName1.slice(0, ownerIndex); for (out in outOwners) { if (outOwners[out] == owner1) { showByOwned = false; |