auto merge of #20865 : killercup/rust/patch-3, r=alexcrichton

This adds an early return to skip code blocks without IDs.

Fixes #20864.
This commit is contained in:
bors 2015-01-11 14:35:46 +00:00
commit 2127e0d56d

View File

@ -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();