Skip to content

Commit

Permalink
Rollup merge of rust-lang#54539 - GuillaumeGomez:fix-js-error, r=Quie…
Browse files Browse the repository at this point in the history
…tMisdreavus

Fix js error

r? @QuietMisdreavus
  • Loading branch information
pietroalbini authored Sep 25, 2018
2 parents 6a0f45b + 827047c commit bd217b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1991,8 +1991,11 @@
}
};
if (getCurrentValue('rustdoc-trait-implementations') !== "false") {
onEach(document.getElementById('implementations-list')
.getElementsByClassName("collapse-toggle"), collapser);
var impl_list = document.getElementById('implementations-list');

if (impl_list !== null) {
onEach(impl_list.getElementsByClassName("collapse-toggle"), collapser);
}
}
if (getCurrentValue('rustdoc-method-docs') !== "false") {
var implItems = document.getElementsByClassName('impl-items');
Expand Down

0 comments on commit bd217b6

Please sign in to comment.