From ff9515c27771619a6d731bb132091d388b3c1766 Mon Sep 17 00:00:00 2001 From: cgeorg Date: Tue, 12 Aug 2014 07:15:13 -0400 Subject: [PATCH] Only splice if there's something to remove --- js/detector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/detector.js b/js/detector.js index 493f81f..9f822cb 100644 --- a/js/detector.js +++ b/js/detector.js @@ -301,7 +301,7 @@ var detector = } } - if (del >= 0) { + if (del > 0) { detector.events.list.splice(0, del); } }