Skip to main content

Bug Tracker

Side navigation

#1054 closed bug (fixed)

Opened March 17, 2007 01:29AM UTC

Closed May 31, 2007 01:54PM UTC

Last modified June 21, 2007 03:09AM UTC

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

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 March 17, 2007 01:32AM UTC.

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

Change History (3)

Changed March 24, 2007 05:35PM UTC by john comment:1

need: → Test Case

Changed March 25, 2007 10:34AM UTC by joern comment:2

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

Changed May 31, 2007 01:54PM UTC by brandon comment:3

description: 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.htmlIf 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
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