Emit 'ready' event, not 'work', when working

This commit is contained in:
Andrew Stewart 2014-09-29 10:21:29 -07:00
parent 4599d5054a
commit de0a8fc0cb
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ Robot.prototype.start = function() {
var begin = function(callback) {
Logger.info('Working.');
this.emit('work', this);
this.emit('ready', this);
this.work.call(this, this);
this.running = true;