Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-04-15 10:24:19 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-04-15 10:24:19 +0400
commit1ca1ef94ee80b8c5fa5f2a1e908a8d00fdfdf268 (patch)
tree43169d489e0e92699f3bbc65aeccf24bc65aadb8 /js
parentcf4924764c94cc7c5f05cef60cc8a68199faf3f2 (diff)
fix opera bug \o/ !!!! #1776
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-scrollspy.js7
1 files changed, 3 insertions, 4 deletions
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')