Skip to content

Commit

Permalink
remove unused scroll fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Somerville committed Dec 8, 2012
1 parent 33b3ee8 commit 502f9fe
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/better_errors/error_page.erb
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,6 @@
previousFrameInfo.style.display = "block";
}

function updateMarginTop() {
return;
if(previousFrameInfo) {
previousFrameInfo.style.marginTop = Math.max(window.scrollY - headerHeight, 0) + "px";
}
}

window.onscroll = updateMarginTop;

for(var i = 0; i < frames.length; i++) {
(function(el) {
el.onclick = function() {
Expand All @@ -233,7 +224,6 @@
previous = el;

selectFrameInfo(el.attributes["data-index"].value);
updateMarginTop();
};
})(frames[i]);
}
Expand Down

0 comments on commit 502f9fe

Please sign in to comment.