X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=e3470e7a7b9ea45e5902ee604511c3b74360254f;hb=bceff4bfe5fc77816c5c6f0025e38debfbfbfd0a;hp=680aa81849a0e5f563e43a31f57d9159c704ac5e;hpb=304c1fbb055ba5159ba8730ceddbbd2b676a3c13;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 680aa81..e3470e7 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1002,9 +1002,13 @@ Dygraph.prototype.createStatusMessage_ = function() { var div = document.createElement("div"); div.className = "dygraph-legend"; for (var name in messagestyle) { - if (messagestyle.hasOwnProperty(name)) { - div.style[name] = messagestyle[name]; - } + if (messagestyle.hasOwnProperty(name)) { + try { + div.style[name] = messagestyle[name]; + } catch (e) { + this.warn("You are using unsupported css properties for your browser in labelsDivStyles"); + } + } } this.graphDiv.appendChild(div); this.attrs_.labelsDiv = div;