aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWing <[email protected]>2014-07-01 10:22:18 +0800
committerChris Rebert <[email protected]>2014-07-03 10:52:22 -0700
commit4b0883230866b018f2cbfdc90071ee405b1f3faf (patch)
tree2917e462bed7ae4e45f4837c6d49a79bc63ca6ab
parent48b822db409d75e2531111e890d38e0eb1126f13 (diff)
downloadbootstrap-4b0883230866b018f2cbfdc90071ee405b1f3faf.tar.xz
bootstrap-4b0883230866b018f2cbfdc90071ee405b1f3faf.zip
no need to create $.Event
`trigger()` can handle string argument
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index 1f55b146f..26b09db56 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -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({