From: Dan Vanderkam Date: Fri, 18 Oct 2013 02:26:58 +0000 (-0400) Subject: lint X-Git-Tag: v1.1.0~80^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=4d9f1cb951055e2325c0b966d1f40278c8addd47;p=dygraphs.git lint --- diff --git a/dygraph.js b/dygraph.js index 456a56c..c3efffc 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1735,7 +1735,7 @@ Dygraph.prototype.eventToDomCoords = function(event) { if (event.offsetX && event.offsetY) { return [ event.offsetX, event.offsetY ]; } else { - var eventElementPos = Dygraph.findPos(this.mouseEventElement_) + var eventElementPos = Dygraph.findPos(this.mouseEventElement_); var canvasx = Dygraph.pageX(event) - eventElementPos.x; var canvasy = Dygraph.pageY(event) - eventElementPos.y; return [canvasx, canvasy];