     else
       super
 
-  toggle: () ->
+  toggle: () =>
     if @panel?.isVisible()
       @hide()
     else
-      projects = new Projects()
-      projects.getAll (projects) =>
+      # @projects = new Projects()
+      @projects.getAll (projects) =>
         @show(projects)
 
   hide: ->

  initialize: (serializeState) ->
    super
    @addClass('project-manager')

  serialize: ->


module.exports =
class ProjectsListView extends SelectListView
  possibleFilterKeys: ['title', 'group', 'template']
  projects: null

  activate: ->
    new ProjectListView
