From 31aa6e490146e1714c9ff3b01260ef22fa19f374 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 24 Oct 2013 12:54:16 -0700 Subject: [PATCH] Fix scope for performing work --- src/robot.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robot.coffee b/src/robot.coffee index 27cd949..a7be7a8 100644 --- a/src/robot.coffee +++ b/src/robot.coffee @@ -50,10 +50,10 @@ module.exports = class Robot device['robot'] = this @devices[device.name] = new Device(device) - start: -> + start: => @startConnections() @startDevices() - @work.call(self, self) + @work.call(self, this) startConnections: => Logger.info "Starting connections..."