projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The "to hash" textbox now accepts changes in the palette.
[dygraphs.git]
/
experimental
/
palette
/
palette.js
diff --git
a/experimental/palette/palette.js
b/experimental/palette/palette.js
index
d98ab15
..
514463f
100644
(file)
--- a/
experimental/palette/palette.js
+++ b/
experimental/palette/palette.js
@@
-215,6
+215,9
@@
Palette.prototype.read = function() {
* Write to input elements.
*/
Palette.prototype.write = function(hash) {
+ if (!hash) {
+ return;
+ }
var results = {};
for (var opt in this.model) {
if (this.model.hasOwnProperty(opt)) {