X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-interaction-model.js;h=0011346a07574b3609fefd0c662e6db026c7e253;hb=74934c8399f3ae7ba8141049680f270fb9697196;hp=c97b060570dfa3fd91214c302aaecc29eca4a89b;hpb=335011fd4473f55aaaceb69726d15e0063373149;p=dygraphs.git diff --git a/dygraph-interaction-model.js b/dygraph-interaction-model.js index c97b060..0011346 100644 --- a/dygraph-interaction-model.js +++ b/dygraph-interaction-model.js @@ -39,7 +39,7 @@ Dygraph.Interaction.startPan = function(event, g, context) { context.isPanning = true; var xRange = g.xAxisRange(); - if (g.getOptionForAxis("logscale", 'x')) { + if (g.getOptionForAxis("logscale", "x")) { context.initialLeftmostDate = Dygraph.log10(xRange[0]); context.dateRange = Dygraph.log10(xRange[1]) - Dygraph.log10(xRange[0]); } else { @@ -138,7 +138,7 @@ Dygraph.Interaction.movePan = function(event, g, context) { } } - if (g.getOptionForAxis("logscale", 'x')) { + if (g.getOptionForAxis("logscale", "x")) { g.dateWindow_ = [ Math.pow(Dygraph.LOG_SCALE, minDate), Math.pow(Dygraph.LOG_SCALE, maxDate) ]; } else {