From 0addac0706212fbe1cafad6b1cf85bf8e5c50997 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 13 Mar 2011 15:36:55 -0400 Subject: [PATCH] adjust slightly for JSON parsing; add comment about JSON --- dygraph.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dygraph.js b/dygraph.js index 5a42728..db388f7 100644 --- a/dygraph.js +++ b/dygraph.js @@ -3617,7 +3617,8 @@ Dygraph.GVizChart.prototype.getSelection = function() { DateGraph = Dygraph; // -Dygraph.OPTIONS_REFERENCE = { +Dygraph.OPTIONS_REFERENCE = // +{ "includeZero": { "type": "boolean", "default": "false", @@ -3939,7 +3940,11 @@ Dygraph.OPTIONS_REFERENCE = { "default": "", "description": "" } -}; +} +; // +// NOTE: in addition to parsing as JS, this snippet is expected to be valid +// JSON. This assumption cannot be checked in JS, but it will be checked when +// documentation is generated by the generate-documentation.py script. // Do a quick sanity check on the options reference. (function() { -- 2.7.4