jQuery: The Write Less, Do More JavaScript Library

Ticket #3234 (closed bug: invalid)

Opened 2 weeks ago

Last modified 2 weeks ago

Toggle Event Function Unexpected Behavior FF3

Reported by: JimmyJam Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.3 Component: event
Version: 1.2.6 Keywords:
Cc: Needs: Review

Description

I am having an issue with the toggle() event function in FireFox? 3. I have not been able to test in other browsers yet, but it is definetly unexpected behavior.

When I supply two functions as arguments, nothing happens on the first call. On the second call it runs the first function and then the second. On the third call, it runs the first function, then the second function, then the first function again. It goes on like this for each subsequent call. I am currently using 1.2.6, but I get the same results using 1.2.7pre, revision 5754.

I have included a test case.

Attachments

toggle_bug.html (0.5 kB) - added by JimmyJam 2 weeks ago.

Change History

Changed 2 weeks ago by JimmyJam

Changed 2 weeks ago by flesler

  • status changed from new to closed
  • resolution set to invalid

On the first click, you're binding the toggle. So only after that, it works. Check the docs.

Note: See TracTickets for help on using tickets.