From: Dan Vanderkam Date: Tue, 15 Oct 2013 04:11:20 +0000 (-0400) Subject: another typo; all tests pass X-Git-Tag: v1.1.0~80^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=fc1c2420cb32dd154c8d88e51780f8a3788a94fe;p=dygraphs.git another typo; all tests pass --- diff --git a/auto_tests/tests/axis_labels-deprecated.js b/auto_tests/tests/axis_labels-deprecated.js index 47185ba..8093935 100644 --- a/auto_tests/tests/axis_labels-deprecated.js +++ b/auto_tests/tests/axis_labels-deprecated.js @@ -85,7 +85,7 @@ DeprecatedAxisLabelsTestCase.prototype.testDeprecatedDateAxisLabelFormatter = fu assertEquals('number', typeof(granularity)); assertEquals('function', typeof(opts)); assertEquals('[Dygraph graph]', dg.toString()); - return 'x' + Util.fomratDate(x); + return 'x' + Util.formatDate(x); }, yAxisLabelFormatter: function(y, granularity, opts, dg) { assertEquals('number', typeof(y)); diff --git a/dygraph.js b/dygraph.js index 88213d6..456a56c 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.findPosX(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];