Skip to content

Commit

Permalink
fix rustdoc performance problems
Browse files Browse the repository at this point in the history
Fixes #22325
  • Loading branch information
Julian Orth committed Feb 24, 2015
1 parent dccdde4 commit 1275c11
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 @@ -33,23 +33,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 1275c11

Please sign in to comment.