         ref = true
 
         if not visited[obj.id]?
-          obj = Base.Collections(obj.type).get(obj.id)
+          obj = @base().Collections(obj.type).get(obj.id)
         else
           console.log("Cyclic reference to #{obj.type}:#{obj.id}")
 

      @showToolbar = options.showToolbar or false
      @render()

    delegateEvents: (events) ->
      super(events)

      for type in _.keys(Base.locations)
        Base.Collections(type).on("all", @onEvent)

    onEvent: (event) =>
      @reRender()

    createTree: (nonempty=true) ->
      nodes = for type in _.keys(Base.locations)
        children = Base.Collections(type).map (obj, index) =>
          visited = {}
          visited[obj.id] = 1
          @descend(index, obj, visited)

  "underscore"
  "jquery"
  "jstree"
  "common/continuum_view"
  "common/has_properties"
], (_, $, $1, ContinuumView, HasProperties) ->

  class ObjectExplorerView extends ContinuumView.View
    initialize: (options) ->
