       notebook
 
     update_view = (notebook) ->
-      # FIXME #163 can't call methods on component specs
-      notebook.component.set_cells notebook.cells
+      notebook.cells_model.set notebook.cells.slice()
 
     clear_notebook = (notebook) ->
       for cell in notebook.cells

    DocumentComponent = React.createClass
      displayName: 'DocumentComponent'
      mixins: [React.ComponentListMixin]
      render: ->
        React.DOM.div {className: 'document'}, @state.components
      # FIXME #163 can't call this

  _ = require 'underscore'
  CodeMirror = require 'cm/codemirror'
  URI = require 'URIjs'
  Bacon = require 'bacon.model'
  Editor = require 'editor'
  http = require 'http'
  graphite = require 'graphite'
