]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
trigger 'affixed.bs.affix' instead of 'affixed'
authorWing <SteelyWing@users.noreply.github.com>
Tue, 1 Jul 2014 02:12:46 +0000 (10:12 +0800)
committerChris Rebert <code@rebertia.com>
Thu, 3 Jul 2014 17:52:22 +0000 (10:52 -0700)
Original is triggering `affixed` not `affixed.bs.affix`, only `.on('affixed.bs.affix', ...)` also catch `affixed` event.

Closes #13998.

js/affix.js

index 7d404ebee58959acff5663bc2ffd44c3e8020b60..1f55b146f94c5b4182bbe186a596e0a10cf7aebe 100644 (file)
@@ -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({