Skip to content

Commit

Permalink
Remove window.onload event handler
Browse files Browse the repository at this point in the history
Since this javascript is placed at the bottom of the file,
the window.onload event is unecessary.
  • Loading branch information
jshawl committed Jun 10, 2014
1 parent f9a5f56 commit 24114f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ <h6>Heading level 6</h6>
document.getElementById("baseline").className = document.getElementById("baseline").className.replace( /(?:^|\s)show-grid(?!\S)/g , '' )
} else { document.getElementById("baseline").className += " show-grid"; }
}
window.onload = function() {
document.getElementById("gridtoggle").addEventListener( 'click' , changeClass );
}
document.getElementById("gridtoggle").addEventListener( 'click' , changeClass );
</script>
</body>
</html>

0 comments on commit 24114f6

Please sign in to comment.