X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Fannotations.js;h=94a064235860d6e8cff14c52778876f5da3dbe98;hb=bef79a5b598ff3bfd0a0cbfe756c82f3945c18b0;hp=d47f8c76efbcdf922741bdb7df25077096f113eb;hpb=5dfebe76ebfa5442d53f1c4a7e6fc384c439cccb;p=dygraphs.git diff --git a/plugins/annotations.js b/plugins/annotations.js index d47f8c7..94a0642 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. @@ -52,7 +54,7 @@ annotations.prototype.didDrawChart = function(e) { // Early out in the (common) case of zero annotations. var points = g.layout_.annotated_points; - if (!points || points.length == 0) return; + if (!points || points.length === 0) return; var containerDiv = e.canvas.parentNode; var annotationStyle = {