mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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.)
This commit is contained in:
parent
1ebb18ae57
commit
58093941c0
4
public/vendor/flot/jquery.flot.events.js
vendored
4
public/vendor/flot/jquery.flot.events.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user