Side navigation
#1701 closed bug (fixed)
Opened September 21, 2007 12:25AM UTC
Closed November 28, 2007 10:24PM UTC
Last modified September 10, 2008 09:51PM UTC
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.
Fixed in [3970].