X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=experimental%2Fpalette%2Fpalette.js;h=514463f554c45d374cb8ec6497c0b672c9133a12;hb=2cfce1c8103454bca196e57db3f23272b7ee5b6e;hp=d98ab15fd18ecb2179f0bbd02b9adc61562e69a1;hpb=0a7181dd7099f3959e7b626f10f2dc9825d014cc;p=dygraphs.git diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index d98ab15..514463f 100644 --- 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)) {