#1701 closed bug (fixed)
Bug in jQuery.fn.toggle
Reported by: | flesler | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
See... I bound two functions using $().toggle, then when I use trigger('click',[foo]) on the element, it doesn't pass the extra arguments. If I'm not mistaken, the error is in line 1900 of jQuery 1.2.1 uncompressed..
Instead of:
return a[this.lastToggle].apply( this, [e] ) false;
It should be
return a[this.lastToggle].apply( this, arguments ) false;
I tracked the extra arguments and they got safely till there. I hope that helps.
Note: See
TracTickets for help on using
tickets.
Fixed in [3970].