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:
gnarf 2011-03-27 06:32:04 -05:00
parent 5c88bb702f
commit 504e599569

View File

@ -14,11 +14,13 @@ $(function() {
$(el).bind("click", function() {
$(this).addClass("current").hide(n, o, duration, function() {
var self = this;
window.setTimeout(function() {
$(self).show(n, o, duration, function() { $(this).removeClass("current"); });
}, wait);
$(this).addClass("current")
// delaying the initial animation makes sure that the queue stays in tact
.delay( 10 )
.hide( n, o, duration )
.delay( wait )
.show( n, o, duration, function() {
$( this ).removeClass("current");
});
});