Skip to main content

Bug Tracker

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.

Attachments (0)
Change History (2)

Changed November 28, 2007 10:24PM UTC by davidserduke comment:1

resolution: → fixed
status: newclosed

Fixed in [3970].

Changed September 10, 2008 09:51PM UTC by flesler comment:2

This was my first ticket for jQuery :D