From a86bad27dde92ad0d965720610e9c2102d0e668a Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Fri, 11 Mar 2011 21:15:44 +0000 Subject: [PATCH] Rename computeAxisBox... to allocateAxisBox git-svn-id: https://flot.googlecode.com/svn/trunk@304 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 3e4e84f..7f44d26 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -860,7 +860,7 @@ axis.labelHeight = h; } - function computeAxisBoxFirstPhase(axis) { + function allocateAxisBoxFirstPhase(axis) { // find the bounding box of the axis by looking at label // widths/heights and ticks, make room by diminishing the // plotOffset @@ -929,7 +929,7 @@ axis.innermost = innermost; } - function computeAxisBoxSecondPhase(axis) { + function allocateAxisBoxSecondPhase(axis) { // set remaining bounding box coordinates if (axis.direction == "x") { axis.box.left = plotOffset.left; @@ -973,7 +973,7 @@ // with all dimensions in house, we can compute the // axis boxes, start from the outside (reverse order) for (i = allocatedAxes.length - 1; i >= 0; --i) - computeAxisBoxFirstPhase(allocatedAxes[i]); + allocateAxisBoxFirstPhase(allocatedAxes[i]); // make sure we've got enough space for things that // might stick out @@ -997,7 +997,7 @@ if (options.grid.show) { $.each(allocatedAxes, function (_, axis) { - computeAxisBoxSecondPhase(axis); + allocateAxisBoxSecondPhase(axis); }); insertAxisLabels();