From d228035fe286246620306d9cead2557ada45134d Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 13 Apr 2015 13:47:33 -0400 Subject: [PATCH] Set this for drawCallback --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index ea04d3e..eab46a2 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2726,7 +2726,7 @@ Dygraph.prototype.renderGraph_ = function(is_initial_draw) { this.canvas_.getContext('2d').clearRect(0, 0, this.width_, this.height_); if (this.getFunctionOption("drawCallback") !== null) { - this.getFunctionOption("drawCallback")(this, is_initial_draw); + this.getFunctionOption("drawCallback").call(this, this, is_initial_draw); } if (is_initial_draw) { this.readyFired_ = true; -- 2.7.4