aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-09-24 23:59:02 -0700
committerJacob Thornton <[email protected]>2012-09-24 23:59:02 -0700
commit0540b63ab0a2f9359fbd34967fbb74402534573f (patch)
tree90aea86837bcacbd1dd2de198f5844e66d911391 /docs/assets/js/bootstrap.js
parentaec8b089307d6bc8787aceb7001313e3751048c1 (diff)
downloadbootstrap-0540b63ab0a2f9359fbd34967fbb74402534573f.tar.xz
bootstrap-0540b63ab0a2f9359fbd34967fbb74402534573f.zip
check affix pos on clicks - use timeout for clicks which scroll
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index bfe68ba92..d1672330c 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -1955,7 +1955,9 @@
var Affix = function (element, options) {
this.options = $.extend({}, $.fn.affix.defaults, options)
- this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
+ this.$window = $(window)
+ .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
+ .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
this.$element = $(element)
this.checkPosition()
}