Patched version

This is the "patched" version, which works correctly. It fixes an issue when attaching multiple Toggle handlers to the same element.

In this test, the ".icon.toggle" handler is applied to both elements and toggles the border colour between yellow and green. The first element has an extra toggle handler applied to it to change its background colour.

Click me: I have class "icon" and ID "btn1". My "#bnt1.toggle" handler toggles my background between beige/gray/black.
Click me: I also have class "icon".

With jQuery 1.3.2 and nightly build it does not function correctly:

With the patch it works as expected.

Same test, with jQuery nightly build