Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1054 closed bug (fixed)

Toggle set within one('click',fn) causes IE to begin toggling in the wrong order

Reported by: joelbirch Owned by:
Priority: major Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: toggle one Cc:
Blocked by: Blocking:

Description (last modified by brandon)

If within a 'one' click function the behaviour of a button is changed to toggle between two functions, IE toggles between them in the wrong order. On the first click after setting the toggle behaviour Firefox will correctly run the first function passed to toggle, whereas both IE6 and IE7 (and I assume IE<6 also) will begin with the second function.

A test page is here: http://users.tpg.com.au/j_birch/toggleTest.html

Attachments (1)

toggleTest.html (1.3 KB) - added by joelbirch 13 years ago.
Test html page with test code embedded. It links to my server for CSS and jQuery 1.1.2

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by joelbirch

Attachment: toggleTest.html added

Test html page with test code embedded. It links to my server for CSS and jQuery 1.1.2

comment:1 Changed 13 years ago by john

need: Test Case

comment:2 Changed 13 years ago by joern

Added a testcase in [1580], but I can't get it to fail. Seems like it doesn't fail when triggering the event programmatically.

comment:3 Changed 13 years ago by brandon

Description: modified (diff)
Resolution: fixed
Status: newclosed

This is fixed in SVN. Not sure which revision it got fixed but it works with the latest ([2012]).

http://brandonaaron.net/jquery/tickets/1054/test.html

Note: See TracTickets for help on using tickets.