From: Robert Konigsberg Date: Tue, 24 May 2011 21:18:48 +0000 (-0400) Subject: treatMouseOpAsClick requires two parameters, I didn't send them both all X-Git-Tag: v1.0.0~463^2~1^2~7 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5a398a99ef58859589f08c929bc0b344f89a2266;p=dygraphs.git treatMouseOpAsClick requires two parameters, I didn't send them both all the time. --- diff --git a/dygraph.js b/dygraph.js index 3cd7c93..821ef84 100644 --- a/dygraph.js +++ b/dygraph.js @@ -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) {