From: Wing Date: Tue, 1 Jul 2014 02:12:46 +0000 (+0800) Subject: trigger 'affixed.bs.affix' instead of 'affixed' X-Git-Tag: v3.3.0~410^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b822db409d75e2531111e890d38e0eb1126f13;p=thirdparty%2Fbootstrap.git 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. --- 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({