Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reverted to HEAD^
  • Loading branch information
cloudhead committed Feb 22, 2010
1 parent 96a1ee6 commit 9bd0c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vows.js
Expand Up @@ -203,8 +203,8 @@ vows.tell = function (topic, tests) {

// If the setup doesn't return an event emitter (such as a promise),
// we create it ourselves, and emit the value on the next tick.
if (setup === undefined || typeof(setup.addCallback) !== 'function') {
var emitter = new(events.Promise);
if (! (setup instanceof vows.options.Emitter)) {
var emitter = new(vows.options.Emitter);

process.nextTick(function (val) {
return function () { emitter.emit("success", val) };
Expand Down

0 comments on commit 9bd0c84

Please sign in to comment.