aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfat <[email protected]>2014-03-08 19:20:47 -0800
committerfat <[email protected]>2014-03-08 19:20:47 -0800
commite9cced72fd7b7924d8b2d2a6b4be9247aa567680 (patch)
tree66e51552c26f8c1fa6313d422ee3788a5f1642db /js
parent4b6e1b6754b8732fd71497997a43a5f92f0c8bcf (diff)
downloadbootstrap-e9cced72fd7b7924d8b2d2a6b4be9247aa567680.tar.xz
bootstrap-e9cced72fd7b7924d8b2d2a6b4be9247aa567680.zip
fix #9342
Diffstat (limited to 'js')
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index 05c909e16..84953c5cd 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -66,7 +66,7 @@
offsetTop != null && (scrollTop <= offsetTop) ? 'top' : false
if (this.affixed === affix) return
- if (this.unpin) this.$element.css('top', '')
+ if (this.unpin != null) this.$element.css('top', '')
var affixType = 'affix' + (affix ? '-' + affix : '')
var e = $.Event(affixType + '.bs.affix')