From bb0acac9c7d46179982ae44dda400b252bcc062d Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sun, 3 Mar 2013 17:31:26 -0500 Subject: [PATCH] Give tick labels the 'tickLabel' class. The tickLabel class is deprecated in favor of flot-tick-label, but we'll continue to use it until the release of version 1.0.0, for backwards-compatibility. --- jquery.flot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 14025b5..4dbd4d8 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1274,7 +1274,7 @@ 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", - font = opts.font || "flot-tick-label"; + font = opts.font || "flot-tick-label tickLabel"; for (var i = 0; i < ticks.length; ++i) { @@ -2015,7 +2015,7 @@ Licensed under the MIT license. var box = axis.box, layer = "flot-" + axis.direction + "-axis flot-" + axis.direction + axis.n + "-axis", - font = axis.options.font || "flot-tick-label", + font = axis.options.font || "flot-tick-label tickLabel", tick, x, y, halign, valign; surface.removeText(layer);