Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

this adds finally as suggested in my ticket #20 #23

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

I wish ".do()" was better documented. It looks like it's used as a finally in the unit tests:

Seq([1])
    .seq(function (n) {
        assert.eql(n, 1);
        calls.before = true;
        this('pow!');
        calls.after = true;
    })
    .seq(function (n) {
        calls.next = true;
        assert.fail('should have skipped this');
    })
    .catch(function (err) {
        assert.eql(err, 'pow!');
        assert.ok(calls.before);
        assert.ok(!calls.after);
        assert.ok(!calls.next);
        clearTimeout(to);
    })
    .do(function () {
        //assert.ok(calls.after);
        clearTimeout(tf);
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment