From: Guillaume Gomez Date: Wed, 5 Sep 2018 21:25:28 +0000 (+0200) Subject: Apply method docs collapse to all impl-items sections X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e1ec05584c362f5b3b9649cf695912533d026a8b;p=rust.git Apply method docs collapse to all impl-items sections --- diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 709865bc932..7f030ef31ce 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -1957,7 +1957,9 @@ var implItems = document.getElementsByClassName('impl-items'); if (implItems && implItems.length > 0) { - onEach(implItems[0].getElementsByClassName("collapse-toggle"), collapser); + onEach(implItems, function(elem) { + onEach(elem.getElementsByClassName("collapse-toggle"), collapser); + }); } } }