mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
effects.tests: changing the way the effects test runs - using delay() instead of callbacks can help us see if we have places where we destroyed the queue
This commit is contained in:
parent
5c88bb702f
commit
504e599569
@ -14,12 +14,14 @@ $(function() {
|
|||||||
|
|
||||||
$(el).bind("click", function() {
|
$(el).bind("click", function() {
|
||||||
|
|
||||||
$(this).addClass("current").hide(n, o, duration, function() {
|
$(this).addClass("current")
|
||||||
var self = this;
|
// delaying the initial animation makes sure that the queue stays in tact
|
||||||
window.setTimeout(function() {
|
.delay( 10 )
|
||||||
$(self).show(n, o, duration, function() { $(this).removeClass("current"); });
|
.hide( n, o, duration )
|
||||||
}, wait);
|
.delay( wait )
|
||||||
});
|
.show( n, o, duration, function() {
|
||||||
|
$( this ).removeClass("current");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user