From: Wing Date: Tue, 1 Jul 2014 02:22:18 +0000 (+0800) Subject: no need to create $.Event X-Git-Tag: v3.3.0~410^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b0883230866b018f2cbfdc90071ee405b1f3faf;p=thirdparty%2Fbootstrap.git no need to create $.Event `trigger()` can handle string argument --- 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({