mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
no need to create $.Event
`trigger()` can handle string argument
This commit is contained in:
+1
-1
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user