Skip to content

Commit 5193619

Browse files
committed
clean up redundant google prettify code
1 parent fd844c6 commit 5193619

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

docs/assets/js/application.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
$(document).ready(function(){
22

33
// Google code prettify
4-
// ================
5-
6-
// cache $(window), as it is used in scroll spy logic later on
7-
var $window = $(window);
4+
// ====================
85

9-
$window.load(function() {
10-
// prettyPrint cannot be set as the event handler to load directly; see
11-
// http://google-code-prettify.googlecode.com/svn/trunk/README.html
12-
prettyPrint();
13-
});
14-
6+
prettyPrint();
157

168
// scroll spy logic
179
// ================
1810

1911
var activeTarget,
2012
position = {},
13+
$window = $(window),
2114
nav = $('body > .topbar li a'),
2215
targets = nav.map(function () {
2316
return $(this).attr('href');

0 commit comments

Comments
 (0)