History

Fix exception in DocList#focus

Thibaut Courouble committed 10 years ago

Commit 802600b1 parent f9507b81 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/sidebar/doc_list.coffee+1−1
@@ -120,7 +120,7 @@ class app.views.DocList extends app.View · 119 unmodified lines
120120 return
121121
122122 focus: (model) ->
123− @listFocus.focus @find("a[href='#{model.fullPath()}']")
123+ @listFocus?.focus @find("a[href='#{model.fullPath()}']")
124124 return
125125
126126 revealCurrent: ->

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t