mde/jake — Issue #92: Tasks don't have .addListener as advertised in README
Author: nibblebot
Created: 2012-01-20 17:30:34+00:00
State: open

// Jakefile
task('b', function() {
console.log('b');
complete();
}, {async: true})

task('default', function() {
var task = jake.Task.b;
task.addListener('complete', function() {
console.log('completed');
})
})

///////////
$ jake
jake aborted.
TypeError: Object [object Object] has no method 'addListener'
at [object Object].action (Jakefile:8:7)
(See full trace by running task with --trace)