The "to hash" textbox now accepts changes in the palette.
[dygraphs.git] / experimental / palette / palette.js
index d98ab15..514463f 100644 (file)
@@ -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)) {