Browse Source

Fix exception in DocList#focus

Thibaut Courouble 9 years ago
parent
commit
802600b602
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/views/sidebar/doc_list.coffee

+ 1 - 1
assets/javascripts/views/sidebar/doc_list.coffee

@@ -120,7 +120,7 @@ class app.views.DocList extends app.View
     return
 
   focus: (model) ->
-    @listFocus.focus @find("a[href='#{model.fullPath()}']")
+    @listFocus?.focus @find("a[href='#{model.fullPath()}']")
     return
 
   revealCurrent: ->