Don't choke when passed null doc to openDoc

This commit is contained in:
James Allen 2014-03-31 10:22:18 +01:00
parent 2ca70f25f6
commit 095f950258

View file

@ -75,6 +75,7 @@ define [
children.add(entity)
openDoc: (doc, line) ->
return if !doc?
doc_id = doc.id or doc
@trigger "open:doc", doc_id, line: line
@selectEntity(doc_id)