From: Dan Vanderkam Date: Mon, 27 Feb 2012 16:23:08 +0000 (-0500) Subject: whitespace cleanup X-Git-Tag: v1.0.0~314^2~17 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0e261c432e246651785eeda3e3ffa65a3ac78842;hp=bceff4bfe5fc77816c5c6f0025e38debfbfbfd0a;p=dygraphs.git whitespace cleanup --- diff --git a/dygraph.js b/dygraph.js index e3470e7..14347f5 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1002,13 +1002,13 @@ Dygraph.prototype.createStatusMessage_ = function() { var div = document.createElement("div"); div.className = "dygraph-legend"; for (var name in messagestyle) { - 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"); - } - } + 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; diff --git a/tests/customLabelCss3.html b/tests/customLabelCss3.html index c90af5f..a5c7c3a 100644 --- a/tests/customLabelCss3.html +++ b/tests/customLabelCss3.html @@ -27,11 +27,11 @@ labelsDivWidth: 100, labelsDivStyles: { 'backgroundColor': 'rgba(200, 200, 255, 0.75)', - 'padding': '4px', - 'border': '1px solid black', - 'borderRadius': '10px', - 'boxShadow': '4px 4px 4px #888' - }, + 'padding': '4px', + 'border': '1px solid black', + 'borderRadius': '10px', + 'boxShadow': '4px 4px 4px #888' + }, labelsSeparateLines: true, yAxisLabelWidth: 20 }