   initialize: ->
     @on 'change:worker', (_, worker)->
       if worker
-        @trigger 'assigned', worker
+        @trigger 'assigned', this, worker
       else
-        @trigger 'completed'
+        @trigger 'completed', this
 
   title: -> @id.match(/\/(.*)\./)[1].replace /_/g, ' '
 

  source.onerror = (e)-> console.log e.type
  source.onopen  = (e)-> console.log e.type

  new View.Flatware model: flatware

class Flatware extends Backbone.Model
  initialize: ->


  initialize: ->
    @on 'change', -> @get('job')?.set @pick 'status', 'dots'
    @on 'change:job', (worker, job)->
      if completed = worker.previousAttributes().job
        @trigger 'completed', worker, completed
      @trigger 'assigned', worker, job if job
      @set dots: []

class Workers extends Backbone.Collection
  model: Worker
