X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fannotations.js;h=6a248949351ebcac23f6e7cbf2064d5c02379a70;hb=4707563ce91e069b58ed6c1be38c8e4ace4a2150;hp=796d6c39d7c53302b13ea61c4b56ea3a51e395d3;hpb=f34f95d1f2fe3adcc0bbe578368740afba513d9f;p=dygraphs.git diff --git a/plugins/annotations.js b/plugins/annotations.js index 796d6c3..6a24894 100644 --- a/plugins/annotations.js +++ b/plugins/annotations.js @@ -4,6 +4,8 @@ * MIT-licensed (http://opensource.org/licenses/MIT) */ +/*global Dygraph:false */ + Dygraph.Plugins.Annotations = (function() { "use strict"; @@ -54,7 +56,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 = {