Guard against global project being null

This commit is contained in:
Kevin Sawicki
2013-10-02 16:07:03 -07:00
parent 80cfcb799e
commit 3bb01c3ebc

View File

@@ -280,5 +280,5 @@ class RootView extends View
# Private: Destroys everything.
remove: ->
editor.remove() for editor in @getEditors()
project.destroy()
project?.destroy()
super