Fix bad 'g' argument for drawHighlightPointCallback.
authorKlaus Weidner <klausw@google.com>
Fri, 21 Feb 2014 03:25:09 +0000 (19:25 -0800)
committerKlaus Weidner <klausw@google.com>
Fri, 21 Feb 2014 03:25:09 +0000 (19:25 -0800)
dygraph.js

index e6b971b..38dd1f4 100644 (file)
@@ -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();