accordion: trigger changestart event when the animation starts (implements 2932)

This commit is contained in:
Paul Bakaus 2008-09-18 10:39:34 +00:00
parent 51e0cdf88d
commit 7651fb4158

View File

@ -121,6 +121,8 @@ function toggle(toShow, toHide, data, clickedActive, down) {
options.data = data;
var complete = scopeCallback(completed, this);
$.data(this, "accordion")._trigger("changestart", null, options.data);
// count elements to animate
options.running = toHide.size() === 0 ? toShow.size() : toHide.size();