From 58093941c0f4cd2eb667e9ac214a63968b4fa538 Mon Sep 17 00:00:00 2001 From: Eric Smekens Date: Mon, 7 Dec 2015 20:16:52 +0100 Subject: [PATCH] Cleaned up jquery.flot.events.js _lastRange was confused with lastRange. This declared '_lastRange' somewhere globally. Was also not used, so removed both. (I know this is a library, but it was heavily adjusted anyway.) --- public/vendor/flot/jquery.flot.events.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/vendor/flot/jquery.flot.events.js b/public/vendor/flot/jquery.flot.events.js index 48ebf2b67fd..6d8a0cf3c42 100644 --- a/public/vendor/flot/jquery.flot.events.js +++ b/public/vendor/flot/jquery.flot.events.js @@ -50,7 +50,7 @@ height: 10 }; - var _events = [], _types, _eventsEnabled = false, lastRange; + var _events = [], _types, _eventsEnabled = false; plot.getEvents = function(){ return _events; @@ -94,8 +94,6 @@ // check for first run if (_events.length < 1) { - _lastRange = xaxis.max - xaxis.min; - // check for clustering if (options.events.clustering) { var ed = _clusterEvents(options.events.types, options.events.data, xaxis.max - xaxis.min);