diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-19 19:59:45 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-21 22:02:54 +0200 |
| commit | ca3213c3380a0c1cd8e342057a7218695ebfc3a7 (patch) | |
| tree | 7160086ba5060117b16871d5f7847f7c0eb7e2bb | |
| parent | 84b91d6f5c7a49159f46f9bec37b57bd7e0a61be (diff) | |
| download | rust-ca3213c3380a0c1cd8e342057a7218695ebfc3a7.tar.gz rust-ca3213c3380a0c1cd8e342057a7218695ebfc3a7.zip | |
fix invalid items removal
| -rw-r--r-- | src/librustdoc/html/static/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index c942eff6b02..27d10bce3a0 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -1212,11 +1212,13 @@ array.forEach(function(item) { var name, type, href, displayPath; - if (shown.indexOf(item.ty) !== -1) { + var id_ty = item.ty + item.path + item.name; + if (shown.indexOf(id_ty) !== -1) { return; } - shown.push(item.ty); + console.log(item); + shown.push(id_ty); name = item.name; type = itemTypes[item.ty]; |
