Commits

Chris Leonello committed 4f8bcca

Fixes issue 436 - clear option to replot always true.

Comments (0)

Files changed (1)

src/jqplot.core.js

         //             optionally pass in list of axes to reset (e.g. ['xaxis', 'y2axis']) (default: false).
         this.replot = function(options) {
             var opts =  options || {};
-            var clear = opts.clear || true;
+            var clear = (opts.clear === false) ? false : true;
             var resetAxes = opts.resetAxes || false;
             this.target.trigger('jqplotPreReplot');