Skip to content

Commit

Permalink
adjust slightly for JSON parsing; add comment about JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Vanderkam committed Mar 13, 2011
1 parent a96f59f commit 0addac0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dygraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -3617,7 +3617,8 @@ Dygraph.GVizChart.prototype.getSelection = function() {
DateGraph = Dygraph;

// <REMOVE_FOR_COMBINED>
Dygraph.OPTIONS_REFERENCE = {
Dygraph.OPTIONS_REFERENCE = // <JSON>
{
"includeZero": {
"type": "boolean",
"default": "false",
Expand Down Expand Up @@ -3939,7 +3940,11 @@ Dygraph.OPTIONS_REFERENCE = {
"default": "",
"description": ""
}
};
}
; // </JSON>
// 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() {
Expand Down

0 comments on commit 0addac0

Please sign in to comment.