another typo; all tests pass
authorDan Vanderkam <danvdk@gmail.com>
Tue, 15 Oct 2013 04:11:20 +0000 (00:11 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Tue, 15 Oct 2013 04:11:20 +0000 (00:11 -0400)
auto_tests/tests/axis_labels-deprecated.js
dygraph.js

index 47185ba..8093935 100644 (file)
@@ -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));
index 88213d6..456a56c 100644 (file)
@@ -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];