Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#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.

Change History (2)

comment:1 Changed 10 years ago by davidserduke

Resolution: fixed
Status: newclosed

Fixed in [3970].

comment:2 Changed 9 years ago by flesler

This was my first ticket for jQuery :D

Note: See TracTickets for help on using tickets.