0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

no need to create $.Event

`trigger()` can handle string argument
This commit is contained in:
Wing 2014-07-01 10:22:18 +08:00 committed by Chris Rebert
parent 48b822db40
commit 4b08832308

View File

@ -83,7 +83,7 @@
this.$element
.removeClass(Affix.RESET)
.addClass(affixType)
.trigger($.Event(affixType.replace('affix', 'affixed') + '.bs.affix'))
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
if (affix == 'bottom') {
this.$element.offset({