Merge pull request #6 from hybridgroup/fix-work-scope

Fix scope for work()
This commit is contained in:
Ron Evans 2013-10-24 14:21:44 -07:00
commit f169e5c10b
1 changed files with 2 additions and 2 deletions

View File

@ -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..."