From 73fa8e5539edfc6362b37178489f219d934f3a5b Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 6 Jul 2014 10:16:38 -0400 Subject: [PATCH] Fix Results#openFirst when firstChild isn't an element --- assets/javascripts/views/sidebar/results.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/views/sidebar/results.coffee b/assets/javascripts/views/sidebar/results.coffee index 3f55672e..3dacb433 100644 --- a/assets/javascripts/views/sidebar/results.coffee +++ b/assets/javascripts/views/sidebar/results.coffee @@ -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) =>