]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
no need to create $.Event
authorWing <SteelyWing@users.noreply.github.com>
Tue, 1 Jul 2014 02:22:18 +0000 (10:22 +0800)
committerChris Rebert <code@rebertia.com>
Thu, 3 Jul 2014 17:52:22 +0000 (10:52 -0700)
`trigger()` can handle string argument

js/affix.js

index 1f55b146f94c5b4182bbe186a596e0a10cf7aebe..26b09db5685593ac1555e439644a4035f8174f3b 100644 (file)
@@ -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({