about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-09-14 12:06:43 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2014-09-14 12:07:48 +1000
commit0deb77d38281bb68d2325a50575defc309b71b6d (patch)
tree45d2ac646bd4bcc1076097d4a1aee6e672ea664f /src/librustdoc
parent1f4117f5182249d91c52cc3e384e4577356e1634 (diff)
Display the doc-block toggle on everything again.
This needs a clone otherwise each successive insertion detaches `toggle`
from the previous position.

Fixes #17125.
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/html/static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 93bf8d115b3..ad9557bf2c1 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -762,7 +762,7 @@
 
         $(".method").each(function() {
            if ($(this).next().is(".docblock")) {
-               $(this).children().first().after(toggle[0]);
+               $(this).children().first().after(toggle.clone());
            }
         });