Permalink
Browse files

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.
  • Loading branch information...
1 parent e354071 commit bb0acac9c7d46179982ae44dda400b252bcc062d @dnschnur dnschnur committed Mar 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.flot.js
View
@@ -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);

0 comments on commit bb0acac

Please sign in to comment.