From 0df6bc4a66234303bb3ff5f3752fdd5ef100f755 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sun, 3 Mar 2013 18:03:39 -0500 Subject: [PATCH] Add back legacy styles for tick label containers. These styles are deprecated, but we'll continue to use them until the release of version 1.0.0, for backwards-compatibility. --- jquery.flot.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 4dbd4d8..b337149 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1273,7 +1273,8 @@ Licensed under the MIT license. var opts = axis.options, ticks = axis.ticks || [], axisw = opts.labelWidth || 0, axish = opts.labelHeight || 0, - layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis", + legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis", + layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles, font = opts.font || "flot-tick-label tickLabel"; for (var i = 0; i < ticks.length; ++i) { @@ -2014,11 +2015,12 @@ Licensed under the MIT license. return; var box = axis.box, - layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis", + legacyStyles = axis.direction + "Axis " + axis.direction + axis.n + "Axis", + layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis " + legacyStyles, font = axis.options.font || "flot-tick-label tickLabel", tick, x, y, halign, valign; - surface.removeText(layer); + surface.removeText(layer); for (var i = 0; i < axis.ticks.length; ++i) {