Correctly avoid labelling 'work' as a command
This commit is contained in:
parent
7a481f6767
commit
bad414be39
|
@ -100,12 +100,12 @@ var Robot = module.exports = function Robot(opts) {
|
|||
|
||||
if (reserved.indexOf(n) < 0) {
|
||||
this[n] = opt;
|
||||
}
|
||||
|
||||
if (opts.commands == null && typeof(opt) === 'function') {
|
||||
this.commands[n] = opt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof opts.commands === 'function') {
|
||||
var result = opts.commands.call(this, this);
|
||||
|
|
Loading…
Reference in New Issue