X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;h=8dc502cb007226f837969ebffdbc0cabaa0b9360;hb=734be391f243fd51632175ede0e2cd1d7404fbea;hp=29341e1b83bd5b0b883ad4d3d2ca30a078816275;hpb=3a8dc464e8e7b197d7df18220ab2ad189ff95841;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 29341e1..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.layout, 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) {