Closed GoogleCodeExporter closed 9 years ago
I cant say its a bug as you can handle this case manually. If plugin would fire
only one callback for all of items you would be limited if you would like to
have separate action for each item.
Manually handle this case is easy - just count items and store this value. In
callback decrease this value and fire your function when it reach 0.
Original comment by wil...@gmail.com
on 10 May 2013 at 6:49
jQuery provides that functionality inherently.
With the .each function
So, for your case it would be
$('.classOfImage').each(function(){$(this).rotate({animate:80,
callback:callbackFunction})});
This is a bug as it breaks the jquery promisability.
Original comment by akari.no...@gmail.com
on 10 May 2013 at 12:47
You're wrong. Jquery promises that it can fire given "function" for "each" item
you selected. Inside this function you say:
For currently iterated element rotate it using parameters X. Repeat this steap
for "each" item.
Jquery never promises that, what you're ask for... Don't get me wrong, but that
would be ... really bad.
Original comment by wil...@gmail.com
on 10 May 2013 at 12:54
Original issue reported on code.google.com by
akari.no...@gmail.com
on 10 May 2013 at 12:32