X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Fgrid.js;h=6284abb1020add8ea5cfedfbe71fb3b30e30eafa;hb=1ec210da847dc40996a07d9e8b711b4ad1d84c76;hp=3ccc2aeceb3aa46795028a848e4227fe68dbec61;hpb=cbe41be103cc129ff2477a872cb802538aafb3d3;p=dygraphs.git diff --git a/plugins/grid.js b/plugins/grid.js index 3ccc2ae..6284abb 100644 --- a/plugins/grid.js +++ b/plugins/grid.js @@ -9,6 +9,8 @@ Dygraph.Plugins.Grid = (function() { /* Current bits of jankiness: +- Direct layout access +- Direct area access */ @@ -30,11 +32,11 @@ grid.prototype.toString = function() { grid.prototype.activate = function(g) { return { - drawChart: this.drawChart + willDrawChart: this.willDrawChart }; }; -grid.prototype.drawChart = function(e) { +grid.prototype.willDrawChart = function(e) { // Draw the new X/Y grid. Lines appear crisper when pixels are rounded to // half-integers. This prevents them from drawing in two rows/cols. var g = e.dygraph; @@ -81,7 +83,7 @@ grid.prototype.drawChart = function(e) { } ctx.restore(); } -} +}; grid.prototype.destroy = function() { };