aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWing <[email protected]>2014-07-01 10:12:46 +0800
committerChris Rebert <[email protected]>2014-07-03 10:52:22 -0700
commit48b822db409d75e2531111e890d38e0eb1126f13 (patch)
treed5eb40d75acc16fde2ec3cf46c66ac8392dd6585
parent13426c18a328cd89024d8f15d8f21822a21385d1 (diff)
downloadbootstrap-48b822db409d75e2531111e890d38e0eb1126f13.tar.xz
bootstrap-48b822db409d75e2531111e890d38e0eb1126f13.zip
trigger 'affixed.bs.affix' instead of 'affixed'
Original is triggering `affixed` not `affixed.bs.affix`, only `.on('affixed.bs.affix', ...)` also catch `affixed` event. Closes #13998.
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index 7d404ebee..1f55b146f 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -83,7 +83,7 @@
this.$element
.removeClass(Affix.RESET)
.addClass(affixType)
- .trigger($.Event(affixType.replace('affix', 'affixed')))
+ .trigger($.Event(affixType.replace('affix', 'affixed') + '.bs.affix'))
if (affix == 'bottom') {
this.$element.offset({