Wrong process sequence with using Deferred.connect #4

Closed
cho45 opened this Issue Jul 6, 2010 · 1 comment

Projects

None yet

1 participant

@cho45
Owner
cho45 commented Jul 6, 2010
// --------------- Here order of log is 2 -> 1 , child redirect works wrong

function showData(data) {
    var fadeout = Deferred.connect($.fn.fadeOut, { target: $('#container'), ok:1 });
    return fadeout(500).
    next(function() {
        return $('#container')
            .text(data)
            .deferred("fadeIn", 2000)
            .next(function() { console.log(1) })
    }).
    next(function() { console.log(2) })
}
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment