[jQuery] Temporarily disabling events?

[jQuery] Temporarily disabling events?


Hi all,
I was wondering if anyone had any suggestions as to a method to
temporarily disable/prevent certain events from firing once one event
is fired? E.g. when pressing one button, I want to disable all other
button presses until an animation has finished.
One idea is to temporarily add some class (e.g. "disabled") to each
other button, and remove it once the animation is done. There are
probably better ways than this, however.
Any ideas?
Thanks,
Keith