History

Fix Content#onAltRight when no link is found

Thibaut committed 12 years ago

Commit eb1141c1 parent 27d7c051 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/content/content.coffee+1−1
@@ -153,7 +153,7 @@ class app.views.Content extends app.View · 152 unmodified lines
153153
154154 onAltRight: (event) =>
155155 unless document.activeElement and $.hasChild @el, document.activeElement
156− @findByTag('a').focus()
156+ @findByTag('a')?.focus()
157157 $.stopEvent(event)
158158
159159 findTargetByHash: (hash) ->