Remove vestigial attributes on Robot
This commit is contained in:
parent
8fbe9b9c4d
commit
1726cdb5f1
|
@ -136,14 +136,15 @@ Robot.prototype.connection = function(name, conn) {
|
|||
*/
|
||||
Robot.prototype.initRobot = function(opts) {
|
||||
this.name = opts.name || "Robot " + ROBOT_ID++;
|
||||
this.running = false;
|
||||
|
||||
this.connections = {};
|
||||
this.devices = {};
|
||||
this.adaptors = {};
|
||||
this.drivers = {};
|
||||
this.commands = {};
|
||||
this.running = false;
|
||||
|
||||
this.work = opts.work || opts.play;
|
||||
|
||||
this.commands = {};
|
||||
|
||||
if (!this.work) {
|
||||
this.work = function() { this.log("debug", "No work yet."); };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue