]> git.lizzy.rs Git - rust.git/commitdiff
Collapse blanket impls in the same way as normal impls
authorLaurenz <laurmaedje@gmail.com>
Fri, 29 Mar 2019 18:47:19 +0000 (19:47 +0100)
committerLaurenz <laurmaedje@gmail.com>
Fri, 29 Mar 2019 18:47:19 +0000 (19:47 +0100)
src/librustdoc/html/static/main.js

index aad7eb627bfe2603a463789a504ef879f579b541..a16e225f1c64578b750c4e1559a0cb5e34f47b72 100644 (file)
@@ -2071,6 +2071,14 @@ if (!DOMTokenList.prototype.remove) {
                     collapser(e, collapse);
                 });
             }
+
+            var blanket_list = document.getElementById("blanket-implementations-list");
+
+            if (blanket_list !== null) {
+                onEachLazy(blanket_list.getElementsByClassName("collapse-toggle"), function(e) {
+                    collapser(e, collapse);
+                });
+            }
         }
     }