   cell =
     component_model: new Bacon.Model null
     type: 'output'
+    key: "output#{cell_key++}"
     visible: true
     active: true
     notebook: notebook
     number: number
 
-  cell.component = OutputCellComponent {cell}
+  cell.component = OutputCellComponent
   cell
 
 run = (input_cell) ->

forwards = +1
backwards = -1

# predicates for cells
is_input = (cell) -> cell.type is 'input'
is_output = (cell) -> cell.type is 'output'

  editor = Editor.create_editor ->
  cell =
    type: 'input'
    key: "input#{cell_key++}"
    visible: true
    active: true
    notebook: notebook
