mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
accordion: trigger changestart event when the animation starts (implements 2932)
This commit is contained in:
parent
51e0cdf88d
commit
7651fb4158
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user