From: Dan Vanderkam Date: Sun, 13 Mar 2011 19:36:55 +0000 (-0400) Subject: adjust slightly for JSON parsing; add comment about JSON X-Git-Tag: v1.0.0~569 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0addac0706212fbe1cafad6b1cf85bf8e5c50997;p=dygraphs.git adjust slightly for JSON parsing; add comment about JSON --- 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() {