Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up redundant google prettify code

  • Loading branch information...
commit 5193619ab0b5eaf937eaec01ba58f179dbc2484c 1 parent fd844c6
@fat fat authored
Showing with 3 additions and 10 deletions.
  1. +3 −10 docs/assets/js/application.js
View
13 docs/assets/js/application.js
@@ -1,23 +1,16 @@
$(document).ready(function(){
// Google code prettify
- // ================
-
- // cache $(window), as it is used in scroll spy logic later on
- var $window = $(window);
+ // ====================
- $window.load(function() {
- // prettyPrint cannot be set as the event handler to load directly; see
- // http://google-code-prettify.googlecode.com/svn/trunk/README.html
- prettyPrint();
- });
-
+ prettyPrint();
// scroll spy logic
// ================
var activeTarget,
position = {},
+ $window = $(window),
nav = $('body > .topbar li a'),
targets = nav.map(function () {
return $(this).attr('href');
Please sign in to comment.
Something went wrong with that request. Please try again.