diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2011-02-23 19:54:45 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2011-02-23 19:54:45 +0000 |
commit | 30b6187f1532a5e499b7817cc58156fb216b597c (patch) | |
tree | cf90c230ccb1d86bab25a16e73200c8134b720b1 /src/compiler | |
parent | 4449c5af35a2fc0fdb2d4283559eda2d4a7334b8 (diff) | |
download | scala-30b6187f1532a5e499b7817cc58156fb216b597c.tar.gz scala-30b6187f1532a5e499b7817cc58156fb216b597c.tar.bz2 scala-30b6187f1532a5e499b7817cc58156fb216b597c.zip |
[scaladoc] The "inherited" filter work correctl...
[scaladoc] The "inherited" filter work correctly for inner classes and
object. Closes #3775. No review.
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; |