Skip to content

Commit

Permalink
Rollup merge of rust-lang#22769 - :rustdocfix, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 11, 2015
2 parents ec8d61d + 1275c11 commit a64e23e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,6 @@
return window.history && typeof window.history.pushState === "function";
}

function resizeShortBlocks() {
if (resizeTimeout) {
clearTimeout(resizeTimeout);
}
resizeTimeout = setTimeout(function() {
var contentWidth = $('.content').width();
$('.docblock.short').width(function() {
return contentWidth - 40 - $(this).prev().width();
}).addClass('nowrap');
$('.summary-column').width(function() {
return contentWidth - 40 - $(this).prev().width();
})
}, 150);
}
resizeShortBlocks();
$(window).on('resize', resizeShortBlocks);

function highlightSourceLines(ev) {
var i, from, to, match = window.location.hash.match(/^#?(\d+)(?:-(\d+))?$/);
if (match) {
Expand Down

0 comments on commit a64e23e

Please sign in to comment.