From ac8e1e2bbfb208632207268d2665f93379184aa2 Mon Sep 17 00:00:00 2001 From: anerth Date: Wed, 6 Jul 2016 09:42:50 +0200 Subject: [PATCH] fix problem with jshint and exact check of null --- Sortable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index d704076..9c7bfa8 100644 --- a/Sortable.js +++ b/Sortable.js @@ -803,7 +803,8 @@ } if (Sortable.active) { - if (newIndex === null || newIndex === -1) { + /* jshint eqnull:true */ + if (newIndex == null || newIndex === -1) { newIndex = oldIndex; }