From 0deb77d38281bb68d2325a50575defc309b71b6d Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 14 Sep 2014 12:06:43 +1000 Subject: [PATCH] Display the doc-block toggle on everything again. This needs a clone otherwise each successive insertion detaches `toggle` from the previous position. Fixes #17125. --- src/librustdoc/html/static/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 93bf8d115b3a..ad9557bf2c14 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()); } });