Fix Results#openFirst when firstChild isn't an element

pull/113/head
Thibaut 11 years ago
parent 5f435c7c8a
commit 73fa8e5539

@ -33,11 +33,11 @@ class app.views.Results extends app.View
return
focusFirst: ->
@listFocus?.focus @el.firstChild
@listFocus?.focus @el.firstElementChild
return
openFirst: ->
@el.firstChild?.click()
@el.firstElementChild?.click()
return
afterRoute: (route, context) =>

Loading…
Cancel
Save