From: Jacob Thornton Date: Fri, 26 Aug 2011 17:53:21 +0000 (-0700) Subject: clean up redundant google prettify code X-Git-Tag: v1.1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5193619ab0b5eaf937eaec01ba58f179dbc2484c;p=thirdparty%2Fbootstrap.git clean up redundant google prettify code --- diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index ddf6b7b9ac..30677829e9 100644 --- a/docs/assets/js/application.js +++ b/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');