From: Klaus Weidner Date: Fri, 21 Feb 2014 03:25:09 +0000 (-0800) Subject: Fix bad 'g' argument for drawHighlightPointCallback. X-Git-Tag: v1.1.0~65^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;ds=inline;h=df75aef5d3eb2056253841c2522e61ecf5dc53a2;hp=d16d197c2d63be4a36f2639040f110e2ccf20c7f;p=dygraphs.git Fix bad 'g' argument for drawHighlightPointCallback. --- diff --git a/dygraph.js b/dygraph.js index e6b971b..38dd1f4 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2027,7 +2027,7 @@ Dygraph.prototype.updateSelection_ = function(opt_animFraction) { ctx.lineWidth = this.getNumericOption('strokeWidth', pt.name); ctx.strokeStyle = color; ctx.fillStyle = color; - callback(this.g, pt.name, ctx, canvasx, pt.canvasy, + callback(this, pt.name, ctx, canvasx, pt.canvasy, color, circleSize, pt.idx); } ctx.restore();