From 3c23fa92c4e3f9f6ad0174dcf3e748d9676f3594 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Josep=20Llodra=CC=80?= Date: Fri, 24 Feb 2012 13:09:00 +0100 Subject: [PATCH] new commit: fix labelsDivStyles IE8 --- dygraph.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dygraph.js b/dygraph.js index fed1cf4..2bc3f7a 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1002,10 +1002,12 @@ Dygraph.prototype.createStatusMessage_ = function() { var div = document.createElement("div"); div.className = "dygraph-legend"; for (var name in messagestyle) { - try { - div.style[name] = messagestyle[name]; - } catch (e) { - console.warn("You are using unsupported css properties for your browser in labelsDivStyles"); + if (messagestyle.hasOwnProperty(name)) { + try { + div.style[name] = messagestyle[name]; + } catch (e) { + console.warn("You are using unsupported css properties for your browser in labelsDivStyles"); + } } } this.graphDiv.appendChild(div); -- 2.7.4