Remove vestigial attributes on Robot

This commit is contained in:
Andrew Stewart 2015-06-26 08:17:30 -07:00
parent 8fbe9b9c4d
commit 1726cdb5f1
1 changed files with 5 additions and 4 deletions

View File

@ -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."); };
}