• David Schnur's avatar
    Always recalculate tickDecimals and tickSize. · 209fe533
    David Schnur authored
    Resolves #1000.  In Flot 0.7 we only calculated tickDecimals and
    tickSize once, when creating the tickGenerator for the first time.  This
    meant that calls to setupGrid failed to recalculate the values, as
    reported in #860.  #861 fixed the problem by moving calculation into
    tickGenerator, but this turned out to cause a new problem, since the
    function doesn't run when an explicit ticks array is provided.
    
    This commit solves both by always recalculating the values outside of
    the tickGenerator function.  As far as I can tell the only reason it
    wasn't done this way from the beginning was to avoid unnecessary work in
    the case where tickGenerator is already provided in the options.  But
    the extra work is negligible, and it's actually more consistent for the
    properties to always be set.
    209fe533
Name
Last commit
Last update
examples Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
API.md Loading commit data...
CONTRIBUTING.md Loading commit data...
FAQ.md Loading commit data...
LICENSE.txt Loading commit data...
Makefile Loading commit data...
NEWS.md Loading commit data...
PLUGINS.md Loading commit data...
README.md Loading commit data...
component.json Loading commit data...
excanvas.js Loading commit data...
excanvas.min.js Loading commit data...
flot.jquery.json Loading commit data...
jquery.colorhelpers.js Loading commit data...
jquery.flot.canvas.js Loading commit data...
jquery.flot.categories.js Loading commit data...
jquery.flot.crosshair.js Loading commit data...
jquery.flot.errorbars.js Loading commit data...
jquery.flot.fillbetween.js Loading commit data...
jquery.flot.image.js Loading commit data...
jquery.flot.js Loading commit data...
jquery.flot.navigate.js Loading commit data...
jquery.flot.pie.js Loading commit data...
jquery.flot.resize.js Loading commit data...
jquery.flot.selection.js Loading commit data...
jquery.flot.stack.js Loading commit data...
jquery.flot.symbol.js Loading commit data...
jquery.flot.threshold.js Loading commit data...
jquery.flot.time.js Loading commit data...
jquery.js Loading commit data...
package.json Loading commit data...