From 48b822db409d75e2531111e890d38e0eb1126f13 Mon Sep 17 00:00:00 2001 From: Wing Date: Tue, 1 Jul 2014 10:12:46 +0800 Subject: [PATCH] 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. --- js/affix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/affix.js b/js/affix.js index 7d404ebee5..1f55b146f9 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({