From cb00f745bf09d30e1d985bab23cbc8a284064d98 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Tue, 24 May 2011 17:13:48 -0400 Subject: [PATCH] Annotation date parser was failing, but not providing the correct message because it didn't have a reference to the dygraph, aka "self". --- dygraph-canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }; -- 2.7.4