Commit 4b088323 authored by Wing's avatar Wing Committed by Chris Rebert

no need to create $.Event

`trigger()` can handle string argument
parent 48b822db
...@@ -83,7 +83,7 @@ ...@@ -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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment