From 05b89f05c49560302f2d2b01e4c29c1230143351 Mon Sep 17 00:00:00 2001 From: Jareer Ahsan Date: Wed, 24 Aug 2016 18:53:56 +0500 Subject: [PATCH] Quality fix, == to === --- lms/static/js/my_courses_dropdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/static/js/my_courses_dropdown.js b/lms/static/js/my_courses_dropdown.js index fe2a9f9ff1..b79db6fc4b 100644 --- a/lms/static/js/my_courses_dropdown.js +++ b/lms/static/js/my_courses_dropdown.js @@ -55,7 +55,7 @@ $(document).ready(function() { } // if up arrow key pressed or shift+tab else down key or tab is pressed - if (event.which == 38 || (event.which == 9 && event.shiftKey)) { + if (event.which === 38 || (event.which === 9 && event.shiftKey)) { // if first item go to last if (focusedItemIndex === 0) { menuItems.last().focus(); @@ -64,9 +64,9 @@ $(document).ready(function() { menuItems.get(itemToFocusIndex).focus(); } event.preventDefault(); - } else if (event.which == 40 || event.which == 9) { + } else if (event.which === 40 || event.which === 9) { // if last item go to first - if (focusedItemIndex == numberOfMenuItems - 1) { + if (focusedItemIndex === numberOfMenuItems - 1) { menuItems.first().focus(); } else { itemToFocusIndex = focusedItemIndex + 1;