X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=8dc502cb007226f837969ebffdbc0cabaa0b9360;hb=290aaf42c19aec275e5d851466c18ef0b1645204;hp=23e93a81a21643e73fc555a184ec88e5ec6a9a7e;hpb=0414310981ad4de3065fbb8de9cb1e9ed5b7ff8b;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 23e93a8..8dc502c 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -393,7 +393,9 @@ DygraphCanvasRenderer.prototype.render = function() { function halfDown(y){return Math.round(y)-0.5}; if (this.options.underlayCallback) { - this.options.underlayCallback(ctx, this.area, this.dygraph_); + // NOTE: we pass the dygraph object to this callback twice to avoid breaking + // users who expect a deprecated form of this callback. + this.options.underlayCallback(ctx, this.area, this.dygraph_, this.dygraph_); } if (this.options.drawYGrid) {