From c5f31bd6f1484dc1d09ec404e201f69294f84a5b Mon Sep 17 00:00:00 2001 From: Phil Hodgson Date: Fri, 24 Oct 2014 19:40:01 +0200 Subject: [PATCH] 3618: replace js use of == and != with the more predictable === and !== --- apps/workbench/app/assets/javascripts/infinite_scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/workbench/app/assets/javascripts/infinite_scroll.js b/apps/workbench/app/assets/javascripts/infinite_scroll.js index 2ca45484ba..fd37308bfe 100644 --- a/apps/workbench/app/assets/javascripts/infinite_scroll.js +++ b/apps/workbench/app/assets/javascripts/infinite_scroll.js @@ -192,7 +192,7 @@ $(document). on('click', 'th[data-sort-order]', function() { var direction = $(this).data('sort-order-direction'); // reverse the current direction, or do ascending if none - if( typeof(direction) == 'undefined' || direction == 'desc' ) { + if( typeof(direction) === 'undefined' || direction === 'desc' ) { direction = 'asc'; } else { direction = 'desc'; @@ -210,7 +210,7 @@ $(document). $('th[data-sort-order]').each(function() { $(this).find('i').remove(); var direction = $(this).data('sort-order-direction'); - if( typeof(direction) != 'undefined' ) { + if( typeof(direction) !== 'undefined' ) { $(this).append(''); } else { $(this).append(''); -- 2.30.2