]> git.lizzy.rs Git - rust.git/commitdiff
Apply method docs collapse to all impl-items sections
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 5 Sep 2018 21:25:28 +0000 (23:25 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 5 Sep 2018 21:25:28 +0000 (23:25 +0200)
src/librustdoc/html/static/main.js

index 709865bc9320370ac2eb3336a9dcf3e52420a6dd..7f030ef31ceb1a123e5b481b60703012b6d10695 100644 (file)
             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);
+                });
             }
         }
     }