From: Robert Konigsberg Date: Tue, 24 May 2011 21:13:48 +0000 (-0400) Subject: Annotation date parser was failing, but not providing the correct X-Git-Tag: v1.0.0~463^2~1^2~8 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=cb00f745bf09d30e1d985bab23cbc8a284064d98;p=dygraphs.git Annotation date parser was failing, but not providing the correct message because it didn't have a reference to the dygraph, aka "self". --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 764bac1..d6570d1 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -70,7 +70,7 @@ DygraphLayout.prototype.setAnnotations = function(ann) { return; } Dygraph.update(a, ann[i]); - if (!a.xval) a.xval = parse(a.x); + if (!a.xval) a.xval = parse(a.x, this.dygraph_); this.annotations.push(a); } };