Skip to content

Commit

Permalink
Fix JS error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Sep 24, 2018
1 parent 20dc0c5 commit 827047c
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 827047c

Please sign in to comment.