From 20e0b8fdb5e48713b78dfc8c59a2fb4454c5bc89 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 27 Mar 2015 22:27:34 +0100 Subject: [PATCH] Fixed cs --- src/Whoops/Resources/js/whoops.base.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Whoops/Resources/js/whoops.base.js b/src/Whoops/Resources/js/whoops.base.js index 1e2078d..e148707 100644 --- a/src/Whoops/Resources/js/whoops.base.js +++ b/src/Whoops/Resources/js/whoops.base.js @@ -63,13 +63,13 @@ Zepto(function($) { // 1) select the next/prev element // 2) make sure the newly selected element is within the view-scope // 3) focus the (right) container, so arrow-up/down (without ctrl) scroll the details - if (e.which == 38 /* arrow up */) { - $activeLine.prev(".frame").click(); + if (e.which === 38 /* arrow up */) { + $activeLine.prev('.frame').click(); $activeLine[0].scrollIntoView(); $container.focus(); e.preventDefault(); - } else if (e.which == 40 /* arrow down */) { - $activeLine.next(".frame").click(); + } else if (e.which === 40 /* arrow down */) { + $activeLine.next('.frame').click(); $activeLine[0].scrollIntoView(); $container.focus(); e.preventDefault();