projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a96f59f
)
adjust slightly for JSON parsing; add comment about JSON
author
Dan Vanderkam
<dan@dygraphs.com>
Sun, 13 Mar 2011 19:36:55 +0000
(15:36 -0400)
committer
Dan Vanderkam
<dan@dygraphs.com>
Sun, 13 Mar 2011 19:36:55 +0000
(15:36 -0400)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
5a42728
..
db388f7
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-3617,7
+3617,8
@@
Dygraph.GVizChart.prototype.getSelection = function() {
DateGraph = Dygraph;
// <REMOVE_FOR_COMBINED>
DateGraph = Dygraph;
// <REMOVE_FOR_COMBINED>
-Dygraph.OPTIONS_REFERENCE = {
+Dygraph.OPTIONS_REFERENCE = // <JSON>
+{
"includeZero": {
"type": "boolean",
"default": "false",
"includeZero": {
"type": "boolean",
"default": "false",
@@
-3939,7
+3940,11
@@
Dygraph.OPTIONS_REFERENCE = {
"default": "",
"description": ""
}
"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() {
// Do a quick sanity check on the options reference.
(function() {