From f6c449e78227a09c958054d9e3384eaa473f21f7 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 4 Feb 2013 14:06:58 +0100 Subject: [PATCH] Always clear legend before updating graph. --- static/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/graph.js b/static/js/graph.js index eeda9c47b..9532d3d91 100644 --- a/static/js/graph.js +++ b/static/js/graph.js @@ -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({