From 4b0883230866b018f2cbfdc90071ee405b1f3faf Mon Sep 17 00:00:00 2001 From: Wing Date: Tue, 1 Jul 2014 10:22:18 +0800 Subject: [PATCH] no need to create $.Event `trigger()` can handle string argument --- js/affix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/affix.js b/js/affix.js index 1f55b146f9..26b09db568 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({