X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Fannotations.js;h=796d6c39d7c53302b13ea61c4b56ea3a51e395d3;hb=0a14b0f9fbe3e97e0163b4e6ad7893e49d3bf2ff;hp=7be79661a9dad144c8a4bb2fe4002b114513f74c;hpb=d38c6191118e78792fa7f18bcc5eb3d8de74b610;p=dygraphs.git diff --git a/plugins/annotations.js b/plugins/annotations.js index 7be7966..796d6c3 100644 --- a/plugins/annotations.js +++ b/plugins/annotations.js @@ -6,6 +6,8 @@ Dygraph.Plugins.Annotations = (function() { +"use strict"; + /** Current bits of jankiness: - Uses dygraph.layout_ to get the parsed annotations. @@ -30,7 +32,7 @@ annotations.prototype.toString = function() { annotations.prototype.activate = function(g) { return { clearChart: this.clearChart, - drawChart: this.drawChart + didDrawChart: this.didDrawChart }; }; @@ -47,7 +49,7 @@ annotations.prototype.clearChart = function(e) { this.detachLabels(); }; -annotations.prototype.drawChart = function(e) { +annotations.prototype.didDrawChart = function(e) { var g = e.dygraph; // Early out in the (common) case of zero annotations.