From: Klaus Weidner Date: Sat, 25 Feb 2012 19:39:15 +0000 (-0800) Subject: remove mouseoverCallback and highlightUnderlay from this branch X-Git-Tag: v1.0.0~314^2~15^2~6 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=240df72e34176516f2d3455e924d7e2d756db773;p=dygraphs.git remove mouseoverCallback and highlightUnderlay from this branch These were part of a different change and weren't intended to be part of this pull request, keep them separate for now. --- diff --git a/dygraph.js b/dygraph.js index 616dfe9..148da34 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1620,13 +1620,6 @@ Dygraph.prototype.mouseMove_ = function(event) { var canvasx = canvasCoords[0]; var canvasy = canvasCoords[1]; - var mouseoverCallback = this.attr_("mouseoverCallback"); - if (mouseoverCallback) { - var highlightRow = this.idxToRow_(idx); - var ret = mouseoverCallback(this, event); - if (ret) return; - } - var highlightSeriesOpts = this.attr_("highlightSeriesOpts"); var selectionChanged = false; if (highlightSeriesOpts) { @@ -1897,8 +1890,6 @@ Dygraph.prototype.updateSelection_ = function(opt_animFraction) { ctx.fillRect(0, 0, this.width_, this.height_); } var setIdx = this.datasetIndexFromSetName_(this.highlightSet_); - var underlay = this.attr_('highlightUnderlay'); - if (underlay) underlay(this, ctx, setIdx); this.plotter_._drawLine(ctx, setIdx); } else if (this.previousVerticalX_ >= 0) { // Determine the maximum highlight circle size.