 
 ObjectBrowserComponent = React.createClass
   displayName: 'ObjectBrowserComponent'
+  getDefaultProps: ->
+    showProto: true
   render: ->
     React.DOM.div {className: 'object-browser'},
       if isSimple @props.object
         componentForObject @props.object
       else if _.isArray @props.object
-        ObjectBrowserTopLevelArrayComponent object: @props.object
+        ObjectBrowserTopLevelArrayComponent @props
       else
-        ObjectBrowserTopLevelObjectComponent object: @props.object
+        ObjectBrowserTopLevelObjectComponent @props
 
 ObjectBrowserTopLevelObjectComponent = React.createClass
   displayName: 'ObjectBrowserTopLevelObjectComponent'


Toggleable =
  getInitialState: ->
    open: @props.initially_open or false
  toggle: (e) ->
    e.stopPropagation()
    @setState open: !@state.open

          React.DOM.div {},
            # spacer lol
            React.DOM.i {className: "fa fa-fw"}
            ObjectBrowserEntriesComponent object: value, showProto: @props.showProto

componentForObject = (o) ->
  if _.isUndefined o
