Skip to content

Commit

Permalink
auto merge of #20865 : killercup/rust/patch-3, r=alexcrichton
Browse files Browse the repository at this point in the history
This adds an early return to skip code blocks without IDs.

Fixes #20864.
  • Loading branch information
bors committed Jan 11, 2015
2 parents 9d2e9b9 + 89ca858 commit 2127e0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustdoc/html/static/playpen.js
Expand Up @@ -14,6 +14,7 @@
(function() {
if (window.playgroundUrl) {
$('pre.rust').hover(function() {
if (!$(this).attr('id')) { return; }
var id = '#' + $(this).attr('id').replace('rendered', 'raw');
var a = $('<a>').text('⇱').attr('class', 'test-arrow');
var code = $(id).text();
Expand Down

0 comments on commit 2127e0d

Please sign in to comment.