소스 검색

Fix exception in DocList#focus

Thibaut Courouble 9 년 전
부모
커밋
802600b602
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: ->