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

no need to create $.Event

`trigger()` can handle string argument
parent 48b822db
Showing with 1 addition and 1 deletion
+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({
......
Supports Markdown
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