From: Dan Vanderkam Date: Tue, 2 Jul 2013 03:48:51 +0000 (-0400) Subject: move prev/nextRow into points array X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=cb31ffb792f820ae37625d728c36b3a36533beb3;p=dygraphs.git move prev/nextRow into points array --- diff --git a/extras/hairlines.js b/extras/hairlines.js index 8e3d7dd..edf0680 100644 --- a/extras/hairlines.js +++ b/extras/hairlines.js @@ -269,6 +269,8 @@ hairlines.prototype.updateHairlineInfo = function() { canvasy: 1, // TODO(danvk): real coordinate xval: h.xval, yval: yval, + prevRow: prevRow, + nextRow: nextRow, name: labels[i] }); } @@ -277,8 +279,6 @@ hairlines.prototype.updateHairlineInfo = function() { if (that.divFiller_) { that.divFiller_(h.infoDiv, { closestRow: row, - prevRow: prevRow, - nextRow: nextRow, points: selPoints, hairline: that.createPublicHairline_(h), dygraph: g