Commits

Anonymous committed 0197ac5

Initialize plot and cursor properly

Comments (0)

Files changed (1)

src/plugins/jqplot.cursor.js

     
     $.jqplot.Cursor.prototype.doZoom = function (gridpos, datapos, plot, cursor) {
         var c = cursor;
-        var cc = cursor.zoomController ? cursor.zoomController : cursor;
+        plot = cursor.zoomTarget || plot;
+        var cc = cursor.zoomController || cursor;
         var axes = plot.axes;
         var zaxes = c._zoom.axes;
         var start = zaxes.start;