treatMouseOpAsClick requires two parameters, I didn't send them both all
authorRobert Konigsberg <konigsberg@google.com>
Tue, 24 May 2011 21:18:48 +0000 (17:18 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 24 May 2011 21:18:48 +0000 (17:18 -0400)
the time.

dygraph.js

index 3cd7c93..821ef84 100644 (file)
@@ -1276,7 +1276,7 @@ Dygraph.Interaction.endPan = function(event, g, context) {
 
   if (regionWidth < 2 && regionHeight < 2 &&
       g.lastx_ != undefined && g.lastx_ != -1) {
-    Dygraph.Interaction.treatMouseOpAsClick(g);
+    Dygraph.Interaction.treatMouseOpAsClick(g, context);
   }
 };
 
@@ -1385,7 +1385,7 @@ Dygraph.Interaction.endZoom = function(event, g, context) {
 
   if (regionWidth < 2 && regionHeight < 2 &&
       g.lastx_ != undefined && g.lastx_ != -1) {
-    Dygraph.Interaction.treatMouseOpAsClick(g);
+    Dygraph.Interaction.treatMouseOpAsClick(g, context);
   }
 
   if (regionWidth >= 10 && context.dragDirection == Dygraph.HORIZONTAL) {