aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-04-15 00:06:35 -0700
committerMark Otto <[email protected]>2012-04-15 00:06:35 -0700
commit6c221d65e3b73a8ad0270ee2876260177df68620 (patch)
tree5c8085af6dd9e40572e34ae445370ee85a1b9d9c /docs
parenta4c2332eb1b5b4baf4309463ab88141d82c88c04 (diff)
parentc262ead6ed63408bbe062187fd4aa8aeb5da2e70 (diff)
downloadbootstrap-6c221d65e3b73a8ad0270ee2876260177df68620.tar.xz
bootstrap-6c221d65e3b73a8ad0270ee2876260177df68620.zip
Merge branch '2.0.3-wip' of github.com:twitter/bootstrap into 2.0.3-wip
Conflicts: docs/assets/bootstrap.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/bootstrap.zipbin71497 -> 71477 bytes
-rw-r--r--docs/assets/js/bootstrap-scrollspy.js9
-rw-r--r--docs/assets/js/bootstrap-tooltip.js36
3 files changed, 18 insertions, 27 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index b56fe6e2a..21104d0b3 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js
index 3dee609c7..c67f1c8aa 100644
--- a/docs/assets/js/bootstrap-scrollspy.js
+++ b/docs/assets/js/bootstrap-scrollspy.js
@@ -94,16 +94,15 @@
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')
- if ( active.parent('.dropdown-menu') ) {
+ if (active.parent('.dropdown-menu')) {
active = active.closest('li.dropdown').addClass('active')
}
diff --git a/docs/assets/js/bootstrap-tooltip.js b/docs/assets/js/bootstrap-tooltip.js
index 454e7a448..af2e58968 100644
--- a/docs/assets/js/bootstrap-tooltip.js
+++ b/docs/assets/js/bootstrap-tooltip.js
@@ -72,33 +72,25 @@
, enter: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
- if (!self.options.delay || !self.options.delay.show) {
- self.show()
- } else {
- clearTimeout(this.timeout)
- self.hoverState = 'in'
- this.timeout = setTimeout(function() {
- if (self.hoverState == 'in') {
- self.show()
- }
- }, self.options.delay.show)
- }
+ if (!self.options.delay || !self.options.delay.show) return self.show()
+
+ clearTimeout(this.timeout)
+ self.hoverState = 'in'
+ this.timeout = setTimeout(function() {
+ if (self.hoverState == 'in') self.show()
+ }, self.options.delay.show)
}
, leave: function (e) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
- if (!self.options.delay || !self.options.delay.hide) {
- self.hide()
- } else {
- clearTimeout(this.timeout)
- self.hoverState = 'out'
- this.timeout = setTimeout(function() {
- if (self.hoverState == 'out') {
- self.hide()
- }
- }, self.options.delay.hide)
- }
+ if (!self.options.delay || !self.options.delay.hide) return self.hide()
+
+ clearTimeout(this.timeout)
+ self.hoverState = 'out'
+ this.timeout = setTimeout(function() {
+ if (self.hoverState == 'out') self.hide()
+ }, self.options.delay.hide)
}
, show: function () {