From: Jacob Thornton Date: Sun, 15 Apr 2012 06:24:19 +0000 (-0700) Subject: fix opera bug \o/ !!!! #1776 X-Git-Tag: v2.0.3~5^2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ca1ef94ee80b8c5fa5f2a1e908a8d00fdfdf268;p=thirdparty%2Fbootstrap.git fix opera bug \o/ !!!! #1776 --- diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 976986b067..f099f408a5 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js index 3dee609c73..f0400813f2 100644 --- a/docs/assets/js/bootstrap-scrollspy.js +++ b/docs/assets/js/bootstrap-scrollspy.js @@ -94,12 +94,11 @@ this.activeTarget = target - this.$body - .find(this.selector).parent('.active') + $(this.selector) + .parent('.active') .removeClass('active') - active = this.$body - .find(this.selector + '[href="' + target + '"]') + active = $(this.selector + '[href="' + target + '"]') .parent('li') .addClass('active') diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index 3dee609c73..f0400813f2 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -94,12 +94,11 @@ this.activeTarget = target - this.$body - .find(this.selector).parent('.active') + $(this.selector) + .parent('.active') .removeClass('active') - active = this.$body - .find(this.selector + '[href="' + target + '"]') + active = $(this.selector + '[href="' + target + '"]') .parent('li') .addClass('active')