Always clear legend before updating graph.

This commit is contained in:
Julius Volz 2013-02-04 14:06:58 +01:00
parent 53eab86a4f
commit f6c449e782
1 changed files with 1 additions and 1 deletions

View File

@ -263,9 +263,9 @@ Prometheus.Graph.prototype.showGraph = function() {
Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
var self = this;
if (self.data.length == 0) { return; }
self.legend.empty();
if (self.rickshawGraph == null || reloadGraph) {
self.graph.empty();
self.legend.empty();
self.showGraph();
} else {
self.rickshawGraph.configure({