Ticket #1067 (closed bug: fixed)
fade callback triggered once for every element faded
|Reported by:||tabacco||Owned by:|
I'm not 100% certain this is a bug (as opposed to by design), but just in case...
It looks like calling one of the fade functions (fadeOut/fadeIn/fadeTo) on a selector that matches multiple objects in the code will cause the callback function to be fired once per object matched, instead of once.
This will cause three "Hey!" alerts to happen. This becomes problematic when you want to fade out several divs (or whatever), populate them from an ajax request, and then fade them back in. Having the ajax request inside the callback means that three requests get made. this