Bug Tracker

Ticket #1054 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: joelbirch Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.1.3 Component: event
Version: 1.1.2 Keywords: toggle one
Cc: Needs: Test Case

Description (last modified by brandon) (diff)

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

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

Change History

Changed 2 years ago by joelbirch

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

Changed 2 years ago by john

  • need set to Test Case

Changed 2 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.

Changed 2 years ago by brandon

  • status changed from new to closed
  • resolution set to fixed
  • description changed from 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 to 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

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.