aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-08-26 10:53:21 -0700
committerJacob Thornton <[email protected]>2011-08-26 10:53:21 -0700
commit5193619ab0b5eaf937eaec01ba58f179dbc2484c (patch)
treee485cfd6514e9a68a841baf477d4b34e03c75df8 /docs
parentfd844c6d5dca4e1c28d17baf7fc73c0883121efb (diff)
downloadbootstrap-5193619ab0b5eaf937eaec01ba58f179dbc2484c.tar.xz
bootstrap-5193619ab0b5eaf937eaec01ba58f179dbc2484c.zip
clean up redundant google prettify code
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/js/application.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index ddf6b7b9a..30677829e 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');