mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
no need to create $.Event
`trigger()` can handle string argument
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
this.$element
|
this.$element
|
||||||
.removeClass(Affix.RESET)
|
.removeClass(Affix.RESET)
|
||||||
.addClass(affixType)
|
.addClass(affixType)
|
||||||
.trigger($.Event(affixType.replace('affix', 'affixed') + '.bs.affix'))
|
.trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
|
||||||
|
|
||||||
if (affix == 'bottom') {
|
if (affix == 'bottom') {
|
||||||
this.$element.offset({
|
this.$element.offset({
|
||||||
|
Reference in New Issue
Block a user